spring
wanzuwodou
这个作者很懒,什么都没留下…
展开
-
Spring和springmvc父子容器关系
父子容器配合使用:spring+springmvc形式工程的扩展性好。子容器中不要有dao和Service对象。 单独使用springmvc:也可以。使用与快速开发的场合。属性是不能跨容器访问的。原创 2016-01-25 21:02:11 · 743 阅读 · 0 评论 -
SpringTest框架整合JUnit单元测试两种方式
方式一: JUnit单元测试中使用Spring框架/** * <p>Title: com.edi.test.controller</p> * <p>Description: </p> * <p>Copyright: Copyright (c) 2017</p> * <p>Company: www.blog.csdn.net/wanzuwodou<;/p> * 测试类原创 2017-07-06 11:28:22 · 402 阅读 · 0 评论 -
spring读取配置文件的两种方式
方式一: bean注入方式:<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"> <property name="locations"> <!-- PropertyPlaceholderConfigurer类中有个locations属性,接收的是一个数组,即我们原创 2017-07-19 19:45:32 · 388 阅读 · 0 评论