您的位置:首页 > 编程语言 > Java开发

4.玩转Spring Boot Starter POMs 介绍

2016-12-19 19:43 756 查看

玩转Spring Boot Starter POMs 介绍

      Starter POMs是可以包含到应用中的一个方便的依赖关系描述符集合。可以获取所有Spring及相关的一站式服务,而不需要大量的依赖描述符。所有的starters遵循一个相似的命名模式:spring-boot-starter-*,在这里*是一种特殊类型的应用程序。这句为官方翻译。

      Spring Boot官方为了我们提供了很多的Starter Poms,具体见下表:

名称描述
spring-boot-starter-thymeleaf对Thymeleaf模板引擎的支持,Spring mvc的集成
spring-boot-starter-ws对Spring Web Services 支持,1.4建议弃用spring-boot-starter-web-services
spring-boot-starter-data-couchbase对Couchbase面向文档的数据库和Spring Data Couchbase 的支持
spring-boot-starter-artemis对JMS消息使用Apache artemis
spring-boot-starter-web-services对Spring web Service 支持
spring-boot-starter-mail对java.mail的支持
spring-boot-starter-data-redis对redis支持,包含Spring Data Redis 客户端 Jedis
spring-boot-starter-web对web支持,包括RESTful,使用tomcat作为默认容器
spring-boot-starter-data-gemfire对Gemfire 分布式数据存储和Spring Data Gemfire支持
spring-boot-starter-activemq对activemq支持
spring-boot-starter-data-elasticsearch对elasticsearch 搜索和分析引擎支持
spring-boot-starter-integration对Spring Integration 支持
spring-boot-starter-test对Spring test支持,包括:Junit,Hamcrest,Mockito
spring-boot-starter-hornetq对hornetq支持。1.4建议弃用spring-boot-starter-artemis
spring-boot-starter-jdbc对tomcat 连接池与JDBC支持
spring-boot-starter-mobile对Spring mobile 支持
spring-boot-starter-validation对validation支持,使用Hibernate validation
spring-boot-starter-hateoas对hateoas支持,用于构建RESTFul web应用使用Spring mvc与Spring Hateoas
spring-boot-starter-jersey对jersey支持,用于构建RESTFul web应用使用JAX-RS与Jersey
spring-boot-starter-data-neo4j对neo4j支持
spring-boot-starter-websocket对websocket支持
spring-boot-starter-aop对Spring AOP与aspectj AOP 支持
spring-boot-starter-amqp对Spring AMQP与Rabbit MQ支持
spring-boot-starter-data-cassandra对cassandra支持
spring-boot-starter-social-facebook对facebook支持
spring-boot-starter-jta-atomikos对atomikos JTA事务支持
spring-boot-starter-security对Spring security支持
spring-boot-starter-mustache对mustache支持
spring-boot-starter-data-jpa对jpa支持
spring-boot-starter对自动配置、日志记录和YAML支持,核心starter
spring-boot-starter-velocity对Velocity 模板引擎支持
spring-boot-starter-groovy-templates对MVC应用中弃用groovy模板支持
spring-boot-starter-freemarker对freemarker模板引擎支持
spring-boot-starter-batch对Spring batch支持
spring-boot-starter-redis对Redis支持,1.4建议弃用spring-boot-starter-data-redis
spring-boot-starter-social-linkedin对social linkedin 支持
spring-boot-starter-cache对缓存支持
spring-boot-starter-data-solr对Apache solr支持
spring-boot-starter-data-mongodb对mongodb支持
spring-boot-starter-jooq对jooq支持,使用jooq访问数据库
spring-boot-starter-jta-narayana对JTA narayana支持
spring-boot-starter-cloud-connectors对Spring cloud连接云平台和Heroku支持
spring-boot-starter-jta-bitronix对JTA bitronix事务支持
spring-boot-starter-social-twitter对social twitter支持
spring-boot-starter-data-rest通过Spring-data-rest-webmvc将Spring Data Repository暴露为REST服务
准生产特性的Starter 
spring-boot-starter-actuator对准特性支持,生产监控和管理您的应用程序
spring-boot-starter-remote-shell对远程ssh shell支持
排除或替换技术类的Starter 
spring-boot-starter-undertow对undertow支持,作为tomcat替代
spring-boot-starter-jetty对jetty支持,作为tomcat替代
spring-boot-starter-logging对logBack支持,Spring Boot默认的日志
spring-boot-starter-tomcat对tomcat的支持,Spring Boot默认的容器
spring-boot-starter-log4j2对log4j2的支持
      到这里我们看到Spring Boot官方已经提供了很多的Starter,还有很多第三方提供的Starter,比如:activiti等。在这里简单的做个介绍,后面我们会讲解自己定义Starter 使用Spring @Conditional注解实现自动配置功能。

有兴趣的朋友可以加群探讨相互学习:

Spring Boot QQ交流群:599546061
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息