![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring
醉公子已被占用
热爱生活
展开
-
spring启动的优化 default-lazy-init=true
项目采用struts2+spring+hibernate实现,项目的规模不算很大,但系统启动起来很慢 原因在于: spring容器启动并解释所有的bean配置文件,这个很耗时间。 发现spring的容器是提供了lazy-load的,即默认的缺省设置是bean没有lazy- load,该属性处于false状态,这样导致spring在启动过程导致在启动时候,会默认加载整个对象实例图,从初始化原创 2012-04-25 20:40:43 · 1942 阅读 · 0 评论 -
使用Spring AOP与Annotation所需的jar包以及命名空间操作
* spring jar包 --->必须使用的jar dist\spring.jar ; lib\jakarta-commons\commons-logging.jar; --->对应的命名空间 <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="转载 2012-05-06 19:07:24 · 3956 阅读 · 1 评论 -
spring JDBCTemplete
http://static.springsource.org/spring/docs/2.5.x/reference/jdbc.html#jdbc-JdbcTemplate Querying (SELECT) A simple query for getting the number of rows in a relation. int rowCount =原创 2013-07-29 15:02:56 · 942 阅读 · 0 评论 -
Spring Velocity
Spring velocity http://xumingrencai.iteye.com/blog/1521549 Spring MVC 与 Velocity 整合 http://hi.baidu.com/zhangxuan1224/blog/item/6c7b795900ecb6222934f07f.html Spring中使用Velocity模板 http://bl...原创 2012-07-29 17:26:39 · 110 阅读 · 0 评论 -
spring JDBCTemplete
http://static.springsource.org/spring/docs/2.5.x/reference/jdbc.html#jdbc-JdbcTemplate Querying (SELECT) A simple query for getting the number of rows in a relation. int rowCount =...原创 2012-08-06 10:14:01 · 142 阅读 · 0 评论 -
Spring 图片上传实例
详细请参考如下博客: http://hi.baidu.com/yuwenxinfirst/item/0549534b12b3c60cc116137b http://woshixushigang.iteye.com/blog/1258404 http://www.cnblogs.com/frankliiu-java/articles/1780511.html ...原创 2012-08-13 16:06:34 · 125 阅读 · 0 评论