Spring Boot提供一系列的starter用于管理依赖jar包,starter简化了依赖的配置。比如我们要建立一个web应用,因此需要依赖spring-web、spring-webmvc等jar包,但是我们不需要直接引用他们,而是通过引入spring-boot-starter-web,spring-boot-starter-web会自动导入web应用依赖的所有jar包。再比如,我们的应用需要通过JPA访问数据库,只要简单的引入spring-boot-starter-data-jpa即可。由此可见,starter大大简化了依赖配置,因此有必要了解一下Spring Boot提供的starter。下面是有Spring Boot提供的所有的starter。
spring-boot-starter | 核心starter,包括自动配置、日志和YAML等功能 |
spring-boot-starter-activemq | 使用基于Apache ActiveMQ的JMS消息 |
spring-boot-starter-amqp | 使用Spring AMQP和Rabbit MQ |
spring-boot-starter-aop | 使用Spring AOP和AspectJ面向切面编程 |
spring-boot-starter-artemis | 使用基于Apache Artemis的JMS消息 |
spring-boot-starter-batch | 使用Spring Batch |
spring-boot-starter-cloud-connectors | 使用Spring Cloud Connectors连接位于Cloud Foundry和Heroku平台上的服务 |
spring-boot-starter-data-cassandra | 使用Cassandra分布式数据库通过Spring Data Cassandra |
spring-boot-starter-data-cassandra-reactive | 使用Cassandra分布式数据库通过Spring Data Couchbase Reactive |
spring-boot-starter-data-couchbase | 使用面向文档的数据库Cassandra通过Spring Data Couchbase |
spring-boot-starter-data-couchbase-reactive | 使用面向文档的数据库Cassandra通过Spring Data Couchbase Reactive |
spring-boot-starter-data-elasticsearch | 使用Elasticsearch搜索和分析引擎通过Spring Data Elasticsearch |
spring-boot-starter-data-jdbc | 使用Spring Data JDBC |
spring-boot-starter-data-jpa | 使用Hibernate |
spring-boot-starter-data-ldap | 使用Spring Data LDAP |
spring-boot-starter-data-mongodb | 使用面向文档的数据库Mongodb通过Spring Data MongoDB |
spring-boot-starter-data-mongodb-reactive | 使用面向文档的数据库Mongodb通过Spring Data MongoDB Reactive |
spring-boot-starter-data-neo4j | 使用图数据库neo4j通过Spring Data Neo4j |
spring-boot-starter-data-redis | 使用键值数据库Redis |
spring-boot-starter-data-redis-reactive | 使用键值数据库Redis通过Spring Data Redis |
spring-boot-starter-data-rest | 暴露Spring Data通过Spring Data Rest |
spring-boot-starter-data-solr | 使用Apache Solr搜索平台通过Spring Data solr |
spring-boot-starter-freemarker | 在Spring MVC web应用程序中使用freemarker视图 |
spring-boot-starter-groovy-template | 在Spring MVC web应用程序中使用Groovy模板视图 |
spring-boot-starter-hateoas | 构建基于hypermedia的RESTFul应用程序 |
spring-boot-starter-integration | 使用Spring Integration |
spring-boot-starter-jdbc | 使用HikariCP连接池的JDBC |
spring-boot-starter-jersey | 使用JAX-RS和Jersey构建RESTful应用程序 |
spring-boot-starter-jooq | 使用JOOQ访问SQL数据库 |
spring-boot-starter-json | 读写JSON |
spring-boot-starter-jta-atomikos | 使用Atomikos的JTA事务 |
spring-boot-starter-jta-bitronix | 使用Bitronix的JTA事务 |
spring-boot-starter-mail | 使用Java Mail功能 |
spring-boot-mustache | 在Spring MVC web应用程序中使用Mustache视图 |
spring-boot-starter-oauth2-client | 使用Spring Security的Oauth2和OpenID客户端 |
spring-boot-starter-oauth2-resource-server | 使用Spring Security的Oauth2资源服务 |
spring-boot-starter-quartz | 使用Quartz计划器 |
spring-boot-starter-rsocket | 构建Rsocket客户端和服务器 |
spring-boot-starter-security | 使用Spring Security |
spring-boot-starter-test | 测试Spring Boot应用,包含JUnit、Hamcrest和Mockito |
spring-boot-starter-thymeleaf | 在Spring MVC web应用程序中使用Thymeleaf视图 |
spring-boot-starter-validation | 使用基于Hibernate Validator的Java Bean Validation |
spring-boot-starter-web | 构建基于SpringMVC的web应用程序,Tocmat作为内嵌的容器 |
spring-boot-starter-web-services | 使用Spring Web Services |
spring-boot-starter-webflux | 使用Spring Framework的Reactive Web构建WebFlux应用程序 |
spring-boot-starter-websocket | 使用Spring Framework的WebSocket构建WebSocket应用程序 |
spring-boot-starter-actuator | 使用Spring Actuator监控管理应用程序 |
spring-boot-starter-jetty | 使用jetty作为内嵌servlet容器 |
spring-boot-starter-log4j2 | 使用Log4j2记录日志 |
spring-boot-starter-logging | 使用Logback记录日志 |
spring-boot-starter-reactor-netty | 使用内嵌的Netty作为HTTP服务器 |
spring-boot-starter-tomcat | 使用tomcat作为内嵌容器 |
spring-boot-starter-undertow | 使用Undertow作为内嵌servlet容器 |