1.实战脚手架搭建-创建项目基本骨架
1.1 快速创建 Spring Boot 项目
目录如下
pom 文件如下
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.7.RELEASE
com.xh.lesson
company-frame
0.0.1-SNAPSHOT
company-frame
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
org.springframework.boot
spring-boot-maven-plugin
1.2 加入依赖
1.2.1 数据库相关
mysql
mysql-connector-java
5.1.47
com.alibaba
druid-spring-boot-starter
1.1.10
1.2.2 redis 相关
org.springframework.boot
spring-boot-starter-data-redis
org.apache.commons
commons-pool2
1.2.3 swagger2 相关
io.springfox
springfox-swagger2
2.9.2
io.springfox
springfox-swagger-ui
2.9.2
1.2.4 shiro 相关
org.apache.shiro
shiro-spring
1.4.1
1.2.5 分页相关
com.github.jsqlparser
jsqlparser
1.0
com.github.pagehelper
pagehelper-spring-boot-starter
1.2.5
1.2.6 fastJson&lombok
org.projectlombok
lombok
com.alibaba
fastjson
1.2.49
1.2.7 JWT 相关
io.jsonwebtoken
jjwt
0.9.1
JJWT是一个提供端到端的JWT创建和验证的Java库。永远免费和开源(Apache License,版本2.0),JJWT很容易使用和理解
1.2.8 aop 相关
org.springframework.boot
spring-boot-starter-aop
1.2.9 热部署相关
org.springframework.boot
spring-boot-devtools
runtime
org.springframework.boot
spring-boot-maven-plugin
true
完整的 pom
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
org.springframework.boot
spring-boot-starter-parent
2.1.6.RELEASE
com.yingxue.lesson
company-frame
0.0.1-SNAPSHOT
company-frame
Demo project for Spring Boot
1.8
org.springframework.boot
spring-boot-starter-web
org.springframework.boot
spring-boot-starter-test
test
mysql
mysql-connector-java
5.1.47
com.alibaba
druid-spring-boot-starter
1.1.10
org.springframework.boot
spring-boot-starter-data-redis
org.apache.commons
commons-pool2
io.springfox
springfox-swagger2
2.9.2
io.springfox
springfox-swagger-ui
2.9.2
org.apache.shiro
shiro-spring
1.4.1
com.github.jsqlparser
jsqlparser
1.0
com.github.pagehelper
pagehelper-spring-boot-starter
1.2.5
org.projectlombok
lombok
com.alibaba
fastjson
1.2.49
io.jsonwebtoken
jjwt
0.9.1
org.springframework.boot
spring-boot-starter-aop
org.springframework.boot
spring-boot-devtools
runtime
org.springframework.boot
spring-boot-maven-plugin
true