With the constant updating of the framework, the use of springboot will be much later, and this side is ready to build a template used by the Springboot project.
The so-called template, as before, is one of the simplest projects, including all the simplest empty implementations.
When making a template reference to a lot of GitHub code, all references to good source of code will be put in the end, like also helpful to you.
This is suitable for switching from SPRINGMVC to Springboot friends, some of the common modules and package features here is not much to repeat.
Of course everyone has a template of their own project, here is just a reference, if you have better have optimization also please comment.
Template Address
Https://github.com/LinkinStars/springBootTemplate
The purpose of the template
1, not familiar with the Springboot project, after learning the basic part of Springboot, can quickly get started according to the template
2, the development team's project structure and the use of equipment unification, including the directory structure, the use of some of the components above the unified
3, do not want to repeat the wheel, each time a new project is a hassle
Components and versions used in the template
JDK 1.8
Gradle 4.3.1
Springboot 1.5.8
MyBatis 3.4.5 mybatis-spring 1.3.1
Druid 1.0.19
Thymeleaf
Brief description of the project structure
src/main/java/
Store Java code, where Springboottemplateapplication is the Springboot startup class
src/main/resources/
APPLICATION.YML Global springboot configuration file, configuration needs to use one of the following two configurations, one APPLICATION-DEV development environment, APPLICATION-PROD.YML production environment, of course, if you configure in the global, it will take effect.
Src/main/resources/static
Store various static resource files, such as Css,js,image, etc.
Src/main/resources/templates
Store the use of the page file, a variety of HTML, etc.
Src/main/resources/mapper
SQL statement XML file that holds MyBatis
Subsequent
Of course, the current version is only a preliminary version, there are many features are also gradually debugging and adding.
The next step is to update several useful plugins to meet the needs of the development
If, hot updates, paging, and so on.
Some bugs have not yet been found, some designs may not be reasonable at present, will be in the actual use of continuous updating.
Build Springboottemplate (Springboot project template)