But before seen a little SpringBoot kinds of useless work to forget a lot of time with the blog to record
Let me explain my development environment
- jdk1.8
- maven 3.6
- idea
Well now we begin to participate in the project
We open the idea click Create Project
Click Spring Initializr
Click Next.
Next name define their own projects
This is what you project to use the function you select only web web connection you want to select the database you can select SQL JDBC you select to use MyBatis MyBatis you can also choose SpringBoot on the first version to be simple to me as long as I web
Check this next step
Project name and file path Next
Click on this and other packages after the automatic pilot to guide complete package started this main method to start if this error report
Only need to
@SpringBootApplication changed
@SpringBootApplication (exclude = DataSourceAutoConfiguration.class)
on it
The default port 8080 is the successful start we have to prepare a simple hello
access
If you do not want to use that you want to use the 80-port 8080 should only need to change how you set up a profile on it
That will be a lot of resources under application.properties configurations are written here
Well, entry to restart the project is complete write down of Spring Boot's profile