![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring framework
文章平均质量分 55
lisiben
这个作者很懒,什么都没留下…
展开
-
spring default-lazy-init
spring在启动的时候,会默认加载会默认加载整个对象实例图,从初始化ACTION配置、到 service配置到dao配置、乃至到数据库连接、事务等等。这样可以减少web服务器在运行时的负担,但是对于开发者来说无疑是效率极低的一个设置了。 还好,spring提供了default-lazy-init属性,其配置形式如下,applicationContext.xml中: < bea...原创 2014-12-31 17:01:38 · 134 阅读 · 0 评论 -
Spring component-scan
Spring component-scan [code="java"] [/code] Element : component-scan Scans the classpath for annotated components that will be auto-registered as Spring beans. By default, the Spri...原创 2015-01-20 15:59:31 · 229 阅读 · 0 评论 -
juint4 struts2 spring3,action测试
[code="java"] import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import org.apache.struts2.StrutsSpringJUnit4TestCase; import org.junit.Test; import org.juni...原创 2015-01-30 17:37:09 · 80 阅读 · 0 评论