旨在让你接近零烦恼快速开发spring应用,快速帮你集成各种spring组件(比如spring security, mvc, data, amqp, web service, etc)
developer can use spring boot easily to get in touch with other spring components.
图片截自:http://spring.io/blog/2013/08/06/spring-boot-simplifying-spring-for-everyone
了解完大概它的作用以及理念(微服务?Docker?)后,最好就是开始看手册了:
Please read its manual:
http://docs.spring.io/spring-boot/docs/1.1.7.RELEASE/reference/htmlsingle/
或者你可以先看这个章节:
10. Developing your first Spring Boot application
创建一个非常简单的spring web应用,它让我忘却了各种基础spring xml的配置烦恼。 cool
它的优点:
1. 创建maven项目后,修改pom.xml,新建两个java文件,就可以运行起一个简单的web应用了。
请自觉对比传统的开始模式: http://blog.csdn.net/Derek_Zhang_/article/details/8872197
2. 弹性配置
3. to be continued
它的缺点:
1. 。。。?配置都是注解?No,它也可以导入spring xml的配置文件。
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
打包成传统的war:
http://mrlee23.iteye.com/blog/2047968
官方有个sample,地址是:
https://github.com/spring-projects/spring-boot/tree/v1.1.5.RELEASE
里面有个spring-boot\spring-boot-samples\spring-boot-sample-web-jsp
自己跑一下。
如果是原来的工程应该添加tomcat-jsp解析包
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-jasper</artifactId>
<scope>provided</scope>
</dependency>
另外其他标签库自行添加,应该能运行起来
-------------------------------------------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------------------------------------------
Spring commiter在某次大会发表完ppt后的总结: