ging
commons-logging
org.springframework.security
spring-security-config
${spring-security.version}
commons-logging
commons-logging
org.springframework.security
spring-security-web
${spring-security.version}
org.springframework.security
spring-security-taglibs
${spring-security.version}
com.googlecode.flyway
flyway-core
1.7
org.springframework.data
spring-data-jpa
${spring-data-jpa.version}
...
使用SpringBoot的好处有:
1.使用mvn spring:boot直接启动一个Web应用。
它提供了一种classpath中可用的嵌入式Tomcat或Jetty容器和自动配置应用,而无需提供任何明确的配置,由用户库的基础上快速地运行应用程序 - 例如。如果发现HSQLDB库在classpath中,它会自动配置数据源与HSQLDB作为嵌入式数据库,如果在classpath中发现thymeleaf jar,它会自动配置thymeleaf作为模板引擎,如果发现Hibernate库在classpath中,那么它会自动使用休眠作为JPA提供者。
2.提供缺省的依赖。
提供了一个必需的以及测试的依赖,还有Spring生态系统的相关项目。例如。与SLF4J的logback作为测试依赖,使用的Servlet 3.0+的API,杰克逊Jackson 2.2对JSON处理,网页模板thymeleaf。