关于spring boot - 快速构建spring程序

旨在让你接近零烦恼快速开发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后的总结:

•考虑对静态文件使用 WebJars
http://www.webjars.org/
•将 Spring MVC 与 jQuery 集成很简单
–考虑使用 DataTables4J
–Bootstrap 酷毙了!
–JSP 自定义标记可助您一臂之力


Implement Bootstrap Pagination With Spring Data And Thymeleaf


http://www.javacodegeeks.com/2013/03/implement-bootstrap-pagination-with-spring-data-and-thymeleaf.html


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值