- 两种方式
- 第一种是继承spring-boot-starter-parent
- [推荐,常用]通过dependencyManagement进行依赖管理
- 总结
- 在贴一下pom中的构造
spring-boot-dependencies 跟 spring-boot-starter-parent
第一种是继承spring-boot-starter-parent上代码:
[推荐,常用]通过dependencyManagement进行依赖管理org.springframework.boot spring-boot-starter-parent 2.2.2.RELEASE
上代码:
总结org.springframework.boot spring-boot-dependencies ${spring-boot.version} pom import org.mybatis.spring.boot mybatis-spring-boot-starter ${mybatis.spring.boot.version} com.baomidou mybatis-plus-boot-starter ${baomidou.version} com.baomidou mybatis-plus-generator ${baomidou.version}
这两种方式,我们在使用
在贴一下pom中的构造org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-logging org.springframework.boot spring-boot-starter-freemarker org.springframework.boot spring-boot-starter-log4j2 org.springframework.boot spring-boot-starter-aop com.lmax disruptor 3.3.6 org.springframework.boot spring-boot-starter-test test mysql mysql-connector-java true org.springframework.boot spring-boot-starter-data-redis org.springframework.boot spring-boot-starter-validation com.baomidou mybatis-plus-boot-starter true com.baomidou mybatis-plus-generator true
这都是根据自己项目和业务来的,这里只是简单贴一下代码,做一个参考。
org.springframework.boot spring-boot-maven-plugin true org.apache.maven.plugins maven-compiler-plugin -parameters UTF-8 1.8 1.8 org.apache.maven.plugins maven-jar-plugin ***.xml **ehcache_3_1.xml **/log4j2-spring.xml **/package.xml true lib/ ${main.class} false true true . org.apache.maven.plugins maven-assembly-plugin src/main/resources/config/package.xml make-assembly package single org.apache.maven.plugins maven-surefire-plugin true -Dfile.encoding=UTF-8



