This article is a tutorial for the single-Demo-boot project. Tutorial Collection: Click on the Tutorial column
The project address
- Back-end project: gitee.com/spzmmd/sing…
- Front-end projects: gitee.com/spzmmd/sing…
The back-end article
Project import and run
- Development tool: IntelliJ IDEA 2019.3
- JDK version: 1.8
- Download the project from Gitee to your developer and unzip it Gitee.com/spzmmd/sing…
- Use idea to open pom. XML in the unzipped folder and select open as a project
3. Wait for IDEA to automatically complete maven dependency import 4. Set the running environment to local 5. The project directory structure is shown below. This project is a standard SpringBoot Maven project 6. Modify the database configuration and code generator configurationOpen the file application.properties for configurationCode generators typically need to configure the following two points:
- generate.project.rootPath
This item identifies the root path of the project. Note that it is an absolute path
- generate.out.path
This parameter indicates the output path of some files. Note that the path is absolute 7. Initializing the databaseCreate your own SingleBoot database at the database address you configured and initialize it with the latest SQL file in “doc/ SQL “8.Start the projectThis project is launched in the same way as a normal SpringBoot project, by running the main() method:
Project deployment
This project uses JAR package deployment, package method is the same as ordinary Maven project, as shown in figure:The jar package can be found in the target directory:Then run the JAR package directly
The front piece
- Development tool: WebStorm 2019.3
- Node version: 11.15.0
- Download the project locally from Gitee and unzip it
Gitee.com/spzmmd/sing… 2. Use WebStorm to open the project folder, open the command line at the bottom of the WebStrom interface, and run the following command (see comments)
# Install chromeDriver
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
# Base dependencies
yarn install
# Run beta
yarn run dev
This command is used when a message is displayed indicating a lack of dependencies
yarn add moment
yarn add axios
yarn add qs
# esLint fix (optional)
eslint --fix src
# packaged
yarn run build
Copy the code
conclusion
- Welcome to join Java Communication Group (QQ group Number: 776241689)
- More technical tutorial articles, I will share in the public account “back-end technology learning and sharing”, welcome to pay attention to!
PS: From Java back-end technology and basic computer knowledge to micro services, Service Mesh and big data, all of which are my research direction. I will regularly share technical dry goods in the public account, hoping to use my own strength, to help friends improve technical ability, common progress!
Original is not easy to reprint, please at the beginning of the famous article source and author. If my article helped you, please like/bookmark/follow it ❤❤❤❤❤❤