📅  最后修改于: 2021-01-11 05:03:11             🧑  作者: Mango
Spring Boot提供了许多启动器,允许我们在类路径中添加jar。 Spring Boot内置的启动器使开发更加轻松,快速。 Spring Boot Starters是依赖项描述符。
在Spring Boot Framework中,所有启动程序都遵循类似的命名模式: spring-boot-starter- * ,其中*表示特定类型的应用程序。例如,如果要使用Spring和JPA进行数据库访问,则需要在项目的pom.xml文件中包含spring-boot-starter-data-jpa依赖项。
我们也可以在我们的项目中包括第三方启动器。但是我们不使用spring-boot-starter来包含第三方依赖项。 spring-boot-starter为官方的Spring Boot构件保留。第三方启动程序以项目名称开头。例如,第三方项目名称是abc,那么依赖项名称将是abc-spring-boot-starter。
Spring Boot Framework在org.springframework.boot组下提供了以下应用程序启动器。
Name | Description |
---|---|
spring-boot-starter-thymeleaf | It is used to build MVC web applications using Thymeleaf views. |
spring-boot-starter-data-couchbase | It is used for the Couchbase document-oriented database and Spring Data Couchbase. |
spring-boot-starter-artemis | It is used for JMS messaging using Apache Artemis. |
spring-boot-starter-web-services | It is used for Spring Web Services. |
spring-boot-starter-mail | It is used to support Java Mail and Spring Framework’s email sending. |
spring-boot-starter-data-redis | It is used for Redis key-value data store with Spring Data Redis and the Jedis client. |
spring-boot-starter-web | It is used for building the web application, including RESTful applications using Spring MVC. It uses Tomcat as the default embedded container. |
spring-boot-starter-data-gemfire | It is used to GemFire distributed data store and Spring Data GemFire. |
spring-boot-starter-activemq | It is used in JMS messaging using Apache ActiveMQ. |
spring-boot-starter-data-elasticsearch | It is used in Elasticsearch search and analytics engine and Spring Data Elasticsearch. |
spring-boot-starter-integration | It is used for Spring Integration. |
spring-boot-starter-test | It is used to test Spring Boot applications with libraries, including JUnit, Hamcrest, and Mockito. |
spring-boot-starter-jdbc | It is used for JDBC with the Tomcat JDBC connection pool. |
spring-boot-starter-mobile | It is used for building web applications using Spring Mobile. |
spring-boot-starter-validation | It is used for Java Bean Validation with Hibernate Validator. |
spring-boot-starter-hateoas | It is used to build a hypermedia-based RESTful web application with Spring MVC and Spring HATEOAS. |
spring-boot-starter-jersey | It is used to build RESTful web applications using JAX-RS and Jersey. An alternative to spring-boot-starter-web. |
spring-boot-starter-data-neo4j | It is used for the Neo4j graph database and Spring Data Neo4j. |
spring-boot-starter-data-ldap | It is used for Spring Data LDAP. |
spring-boot-starter-websocket | It is used for building the WebSocket applications. It uses Spring Framework’s WebSocket support. |
spring-boot-starter-aop | It is used for aspect-oriented programming with Spring AOP and AspectJ. |
spring-boot-starter-amqp | It is used for Spring AMQP and Rabbit MQ. |
spring-boot-starter-data-cassandra | It is used for Cassandra distributed database and Spring Data Cassandra. |
spring-boot-starter-social-facebook | It is used for Spring Social Facebook. |
spring-boot-starter-jta-atomikos | It is used for JTA transactions using Atomikos. |
spring-boot-starter-security | It is used for Spring Security. |
spring-boot-starter-mustache | It is used for building MVC web applications using Mustache views. |
spring-boot-starter-data-jpa | It is used for Spring Data JPA with Hibernate. |
spring-boot-starter | It is used for core starter, including auto-configuration support, logging, and YAML. |
spring-boot-starter-groovy-templates | It is used for building MVC web applications using Groovy Template views. |
spring-boot-starter-freemarker | It is used for building MVC web applications using FreeMarker views. |
spring-boot-starter-batch | It is used for Spring Batch. |
spring-boot-starter-social-linkedin | It is used for Spring Social LinkedIn. |
spring-boot-starter-cache | It is used for Spring Framework’s caching support. |
spring-boot-starter-data-solr | It is used for the Apache Solr search platform with Spring Data Solr. |
spring-boot-starter-data-mongodb | It is used for MongoDB document-oriented database and Spring Data MongoDB. |
spring-boot-starter-jooq | It is used for jOOQ to access SQL databases. An alternative to spring-boot-starter-data-jpa or spring-boot-starter-jdbc. |
spring-boot-starter-jta-narayana | It is used for Spring Boot Narayana JTA Starter. |
spring-boot-starter-cloud-connectors | It is used for Spring Cloud Connectors that simplifies connecting to services in cloud platforms like Cloud Foundry and Heroku. |
spring-boot-starter-jta-bitronix | It is used for JTA transactions using Bitronix. |
spring-boot-starter-social-twitter | It is used for Spring Social Twitter. |
spring-boot-starter-data-rest | It is used for exposing Spring Data repositories over REST using Spring Data REST. |
Name | Description |
---|---|
spring-boot-starter-actuator | It is used for Spring Boot’s Actuator that provides production-ready features to help you monitor and manage your application. |
spring-boot-starter-remote-shell | It is used for the CRaSH remote shell to monitor and manage your application over SSH. Deprecated since 1.5. |
Name | Description |
---|---|
spring-boot-starter-undertow | It is used for Undertow as the embedded servlet container. An alternative to spring-boot-starter-tomcat. |
spring-boot-starter-jetty | It is used for Jetty as the embedded servlet container. An alternative to spring-boot-starter-tomcat. |
spring-boot-starter-logging | It is used for logging using Logback. Default logging starter. |
spring-boot-starter-tomcat | It is used for Tomcat as the embedded servlet container. Default servlet container starter used by spring-boot-starter-web. |
spring-boot-starter-log4j2 | It is used for Log4j2 for logging. An alternative to spring-boot-starter-logging. |