一、springboot整合相关jar
- spring-boot-starter Spring Boot核心starter,包含自动配置、日志、yal配置文件支持
- spring-boot-starter-actuator 准生产特性、用于监控和管理应用
- spring-boot-starter-remote-shell 提供基于ssh协议的监控和管理
- spring-boot-starter-amqp 使用spring-rabbitlai zhichi AMQP
- spring-boot-starter-aop 使用spring-aop和AspectJ支持面向切面编程
- spring-boot-starter-batch 对Spring Batch的支持
- spring-boot-starter-cache 对Spring Cache的抽象支持
- spring-boot-starter-cloud-connectors 对云平台(Cloud Foundry、Heroku)提供的服务提供简化的连接方式
- spring-boot-starter-data-elasticsearch 通过spring-data-elasticsearch对Elasticsearch支持
- spring-boot-starter-data-gemfire 通过spring-data-gemfire对分布式存储GemFire的支持
- spring-boot-starter-data-jpa 对JPA的支持,包含spring-data-jpa、spring-orm和hibernate
- spring-boot-starter-mongodb 通过spring-data-mongodb,对mongodb的支持
- spring-boot-starter-rest 通过spring-data-rest-webmvc将Spring Data repository暴露为REST形式服务
- spring-boot-starter-solr 通过spring-data-solr对Apache Solr数据检索的支持
- spring-boot-starter-freemarker 对Freemarker模板引擎的支持
- spring-boot-starter-groovy-templates 通过spring-hateoas对基于HATEOAS的REST形式网络服务支持
- spring-boot-starter-hornetq 通过HornetQ对JMS的支持
- spring-boot-starter-integration 对系统集成框架spring-integration支持
- spring-boot-starter-jdbc 对JDBC数据库的支持
- spring-boot-starter-jersey 对Jersery REST形式网络服务支持
- spring-boot-starter-jta-atomikos 通过Atomikos对分布式事务的支持
- spring-boot-starter-mail 对javax.mail的支持
- spring-boot-starter-mobile 对spring-mobile的支持
- spring-boot-starter-mustache 对Mustache模板引擎的支持
- spring-boot-starter-redis 对Redis的支持,包含spring-redis
- spring-boot-starter-security 对spring-security的支持
- spring-boot-starter-social-facebook 对Facebook支持
- spring-boot-starter-social-linkedin 对linkedin支持
- spring-boot-starter-social-twitter 对Twitter支持
- spring-boot-starter-test 对常用测试框架JUnit、Hamcrest和Mockito的支持,包含spring-test模块
- spring-boot-starter-thymeleaf 对Thymeleaf模板引擎的支持,包含于Spring整合的配置
- spring-boot-starter-velocity 对Velocity模板引擎的支持
- spring-boot-starter-web 对Web项目开发支持,包含Tomcat和Spring MVC
- spring-boot-starter-Tomcat Spring Boot默认Servlet容器
- spring-boot-starter-Jetty 使用Jetty作为Servlet容器
- spring-boot-starter-undertow 使用Undertow作为Servlet容器
- spring-boot-starter-logging Spring Boot默认日志框架logback
- spring-boot-starter-log4j 支持使用Log4J日志框架
- spring-boot-starter-websocket 对websocket的支持
- spring-boot-starter-ws 对Spring Web Service支持
二、三方相关jar
- mybatis-spring-boot-starter Mybatis整合SpringBoot的依赖
- mysql-connector-java MySql的依赖
- thymeleaf-spring5 thymeleaf依赖
- thymeleaf-extras-java8time thymeleaf依赖
- log4j log4j日志依赖
- druid 阿里巴巴JDBC连接池、监控组件
- lombok lombok依赖
- thymeleaf-extras-shiro shiro-thymeleaf的整合包
- shiro-spring shiro整合spring的包
三、springcloud整合相关jar
四、特殊jar
当我们使用 spring 或 spring-boot 开发项目时,需要引入很多依赖,包括 spring 本身的组件、各种 spring-boot-starter、以及其它第三方依赖(如:slf4j、redis)。
依赖多了,版本的选择是个问题,就怕哪个版本选择的不对导致出现一些意想不到的 BUG。
spring 提供了 spring-boot-dependencies 用于方便管理项目的依赖,只需在 dependencyManagement 里面配置好 spring-boot-dependencies 的版本,在 dependencies 里面就不用再指定其它版本号了。
1. spring-boot-dependencies
spring-boot-dependencies其实就是一个 pom.xml,里面管理了spring-boot相关的依赖和版本(spring-boot-starter-xxx)以及很多常见第三方的依赖和版本。