初步看了一下springboot的demo,有以下几点比较直观:
1.内嵌了Tomcat 不用再打包成war包部署了。
2.配置采用YAML格式更加简洁,不用再配置繁琐的XML。
3.可以很方便集成Spring MVC、mybatis等。
官网介绍:
Spring Boot makes it easy to create stand-alone, production-grade Spring based Applications that you can "just run". We take an opinionated view of the Spring platform and third-party libraries so you can get started with minimum fuss. Most Spring Boot applications need very little Spring configuration.
Features
- Create stand-alone Spring applications
- Embed Tomcat, Jetty or Undertow directly (no need to deploy WAR files)
- Provide opinionated 'starter' POMs to simplify your Maven configuration
- Automatically configure Spring whenever possible
- Provide production-ready features such as metrics, health checks and externalized configuration
- Absolutely no code generation and no requirement for XML configuration
参考资源:
1.官网:https://projects.spring.io/spring-boot/
2.https://www.ibm.com/developerworks/cn/java/j-lo-spring-boot/index.html
使用 Spring Boot 快速构建 Spring 框架应用