常用的起步依赖
- spring-boot-starter-parent 核心pom,包含对自动配置、日志库、yaml配置文件的支持,所有springboot项目都需要继承。
- spring-boot-starter-web 对web开发的支持,内置的tomcat、springmvc的坐标、jackson的坐标
- spring-boot-starter-tomcat 使用内置的tomcat
- spring-boot-starter-jetty 使用内置的jetty
- spring-boot-starter-log4j 对log4j的支持
- spring-boot-starter-test 对测试的支持,包含了junit.jar、spring-test.jar等的坐标
- spring-boot-starter-jdbc 对jdbc的支持
- spring-boot-starter-data-mongodb 对mongondb的支持
- spring-boot-starter-velocity 对velocity模板引擎的支持
- spring-boot-starter-aop 对aop(Spring AOP、AspectJ)的支持
- spring-boot-starter-websocket 对websocket的支持
- spring-boot-starter-amqp 对AMQP消息队列的支持
所谓支持,是说集成了相关依赖的坐标。
有些起步依赖又包含了其它的起步依赖,比如spring-boot-starter-web包含了spring-boot-starter-tomcat,所以使用web时就不必再使用tomcat。