首页 » Spring Boot实战 » Spring Boot实战全文在线阅读

《Spring Boot实战》附录 B Spring Boot起步依赖

关灯直达底部

Spring Boot起步依赖大大简化了项目构建说明中的依赖配置,因为常用的依赖聚合于更粗粒度的依赖。你的构建项目会传递解析到起步依赖中声明的其他依赖。

起步依赖不仅能让构建说明中的依赖配置更简单,还根据提供给应用程序的功能将它们组织到一起。例如,与其指定用于验证的特定库(比如Hibernate Validator和Tomcat的内嵌表达式语言),还不如简单地添加spring-boot-starter-validation起步依赖。

表B-1列出了Spring Boot的所有起步依赖,还有它们传递声明的依赖。

表B-1 Spring Boot起步依赖

起步依赖(Group ID:org.springframework.boot

传递依赖

spring-boot-starter

org.springframework.boot:spring-bootorg.springframework.boot:spring-boot-autoconfigureorg.springframework.boot:spring-boot-starter-loggingorg.springframework:spring-core(excludes commons-logging:commons-logging)org.yaml:snakeyaml

spring-boot-starter-actuator

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-actuator

spring-boot-starter-amqp

org.springframework.boot:spring-boot-starterorg.springframework:spring-messagingorg.springframework.amqp:spring-rabbit

spring-boot-starter-aop

org.springframework.boot:spring-boot-starterorg.springframework:spring-aoporg.aspectj:aspectjrtorg.aspectj:aspectjweaver

spring-boot-starter-artemis

org.springframework.boot:spring-boot-starterorg.springframework:spring-jmsorg.apache.activemq:artemis-jms-client

spring-boot-starter-batch

org.springframework.boot:spring-boot-starterorg.hsqldb:hsqldborg.springframework:spring-jdbcorg.springframework.batch:spring-batch-core

spring-boot-starter-cache

org.springframework.boot:spring-boot-starterorg.springframework:spring-contextorg.springframework:spring-context-support

spring-boot-starter-cloud-connectors

org.springframework.boot:spring-boot-starterorg.springframework.cloud:spring-cloud-spring-service-connectororg.springframework.cloud:spring-cloud-cloudf-oundry-connectororg.springframework.cloud:spring-cloud-heroku-connectororg.springframework.cloud:spring-cloud-local-config-connector

spring-boot-starter-data-elasticsearch

org.springframework.boot:spring-boot-starterorg.springframework.data:spring-data-elasticsearch

spring-boot-starter-data-gemfire

org.springframework.boot:spring-boot-startercom.gemstone.gemfire:gemfire(excludes commons-logging:commons-logging)org.springframework.data:spring-data-gemfire

spring-boot-starter-data-jpa

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-aoporg.springframework.boot:spring-boot-starter-jdbcorg.hibernate:hibernate-entitymanager(excludes_org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)javax.transaction:javax.transaction-apiorg.springframework.data:spring-data-jpaorg.springframework:spring-aspects

spring-boot-starter-data-mongodb

org.springframework.boot:spring-boot-starterorg.mongodb:mongo-java-driverorg.springframework.data:spring-data-mongodb

spring-boot-starter-data-rest

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-webcom.fasterxml.jackson.core:jackson-annotationscom.fasterxml.jackson.core:jackson-databindorg.springframework.data:spring-data-rest-webmvc

spring-boot-starter-data-solr

org.springframework.boot:spring-boot-starterorg.apache.solr:solr-solrj (excludes log4j:log4j)org.springframework.data:spring-data-solrorg.apache.httpcomponents:httpmime

spring-boot-starter-freemarker

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.freemarker:freemarkerorg.springframework:spring-context-support

spring-boot-starter-groovy-templates

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.codehaus.groovy:groovy-templates

spring-boot-starter-hateoas

org.springframework.boot:spring-boot-starter-weborg.springframework.hateoas:spring-hateoasorg.springframework.plugin:spring-plugin-core

spring-boot-starter-hornetq

org.springframework.boot:spring-boot-starterorg.springframework:spring-jmsorg.hornetq:hornetq-jms-client

spring-boot-starter-integration

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-aoporg.springframework.integration:spring-integration-coreorg.springframework.integration:spring-integration-fileorg.springframework.integration:spring-integration-httporg.springframework.integration:spring-integration-iporg.springframework.integration:spring-integration-stream

spring-boot-starter-jdbc

org.springframework.boot:spring-boot-starterorg.apache.tomcat:tomcat-jdbcorg.springframework:spring-jdbc

spring-boot-starter-jersey

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-tomcatorg.springframework.boot:spring-boot-starter-validationcom.fasterxml.jackson.core:jackson-databindorg.springframework:spring-weborg.glassfish.jersey.core:jersey-serverorg.glassfish.jersey.containers:jersey-container-servlet-coreorg.glassfish.jersey.containers:jersey-container-servletorg.glassfish.jersey.ext:jersey-bean-validation(excludes javax.el:javax.el-api, org.glassfish.web:javax.el)org.glassfish.jersey.ext:jersey-spring3org.glassfish.jersey.media:jersey-media-json-jackson

spring-boot-starter-jetty

org.eclipse.jetty:jetty-servletsorg.eclipse.jetty:jetty-webapporg.eclipse.jetty.websocket:websocket-serverorg.eclipse.jetty.websocket:javax-websocket-server-impl

spring-boot-starter-jooq

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-jdbcorg.springframework:spring-txorg.jooq:jooq

spring-boot-starter-jta-atomikos

org.springframework.boot:spring-boot-startercom.atomikos:transactions-jmscom.atomikos:transactions-jta(excludes org.apache.geronimo.specs:geronimo-jta_1.0.1B_spec)com.atomikos:transactions-jdbcjavax.transaction:javax.transaction-api

spring-boot-starter-jta-bitronix

org.springframework.boot:spring-boot-starterjavax.jms:jms-apijavax.transaction:javax.transaction-apiorg.codehaus.btm:btm (excludes javax.transaction:jta)

spring-boot-starter-log4j

org.slf4j:jcl-over-slf4jorg.slf4j:jul-to-slf4jorg.slf4j:slf4j-log4j12log4j:log4j

spring-boot-starter-log4j2

org.apache.logging.log4j:log4j-slf4j-implorg.apache.logging.log4j:log4j-apiorg.apache.logging.log4j:log4j-coreorg.slf4j:jcl-over-slf4jorg.slf4j:jul-to-slf4j

spring-boot-starter-logging

ch.qos.logback:logback-classicorg.slf4j:jcl-over-slf4jorg.slf4j:jul-to-slf4jorg.slf4j:log4j-over-slf4j

spring-boot-starter-mail

org.springframework.boot:spring-boot-starterorg.springframework:spring-contextorg.springframework:spring-context-supportcom.sun.mail:javax.mail

spring-boot-starter-mobile

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework.mobile:spring-mobile-device

spring-boot-starter-mustache

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-webcom.samskivert:jmustache

spring-boot-starter-redis

org.springframework.boot:spring-boot-starterorg.springframework.data:spring-data-redisredis.clients:jedis

spring-boot-starter-remote-shell

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-actuatororg.crashub:crash.cliorg.crashub:crash.connectors.ssh(excludes org.codehaus.groovy:groovy-all)org.crashub:crash.connectors.telnet (excludes javax.servlet:servlet-api,log4j:log4j,commons-logging:commonslogging)org.crashub:crash.embed.spring(excludes org.spring-framework:spring-web,org.codehaus.groovy:groovy-all)org.crashub:crash.plugins.cron (excludes org.codehaus.groovy:groovy-all)org.crashub:crash.plugins.mail (excludes org.codehaus.groovy:groovy-all)org.crashub:crash.shell(excludes org.codehaus.groovy:groovy-all)org.codehaus.groovy:groovy

spring-boot-starter-security

org.springframework.boot:spring-boot-starterorg.springframework:spring-aoporg.springframework.security:spring-security-configorg.springframework.security:spring-security-web

spring-boot-starter-social-facebook

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework.social:spring-social-configorg.springframework.social:spring-social-coreorg.springframework.social:spring-social-weborg.springframework.social:spring-social-facebook

spring-boot-starter-social-linkedin

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework.social:spring-social-configorg.springframework.social:spring-social-coreorg.springframework.social:spring-social-weborg.springframework.social:spring-social-linkedin

spring-boot-starter-social-twitter

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework.social:spring-social-configorg.springframework.social:spring-social-coreorg.springframework.social:spring-social-weborg.springframework.social:spring-social-twitter

spring-boot-starter-tes

junit:junitorg.mockito:mockito-coreorg.hamcrest:hamcrest-coreorg.hamcrest:hamcrest-libraryorg.springframework:spring-core(excludes commons-logging:commons-logging)org.springframework:spring-test

spring-boot-starter-thymeleaf

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.thymeleaf:thymeleaf-spring4nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect

spring-boot-starter-tomcat

org.apache.tomcat.embed:tomcat-embed-coreorg.apache.tomcat.embed:tomcat-embed-elorg.apache.tomcat.embed:tomcat-embed-logging-juliorg.apache.tomcat.embed:tomcat-embed-websocket

spring-boot-starter-undertow

io.undertow:undertow-coreio.undertow:undertow-servlet(excludes org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)io.undertow:undertow-websockets-jsrjavax.servlet:javax.servlet-apiorg.glassfish:javax.el

spring-boot-starter-validation

org.springframework.boot:spring-boot-starterorg.apache.tomcat.embed:tomcat-embed-elorg.hibernate:hibernate-validator

spring-boot-starter-velocity

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-webcommons-beanutils:commons-beanutilscommons-collections:commons-collectionscommons-digester:commons-digesterorg.apache.velocity:velocityorg.apache.velocity:velocity-toolsorg.springframework:spring-context-support

spring-boot-starter-web

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-tomcatorg.springframework.boot:spring-boot-starter-validationcom.fasterxml.jackson.core:jackson-databindorg.springframework:spring-weborg.springframework:spring-webmvc

spring-boot-starter-websocket

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework:spring-messagingorg.springframework:spring-websocket

spring-boot-starter-ws

org.springframework.boot:spring-boot-starterorg.springframework.boot:spring-boot-starter-weborg.springframework:spring-jmsorg.springframework:spring-oxmorg.springframework.ws:spring-ws-coreorg.springframework.ws:spring-ws-support