随笔分类 -  Spring

spring中涉及事务(bean中ref与local)
摘要:<bean id="接口" parent="父id"> <property name="target"> <ref local="实现" /> </property> </bean> <bean id="实现" class="实现类的全路径"> <property name="成员变量"> <ref 阅读全文

posted @ 2016-05-12 17:05 struggle_beiJing 阅读(1311) 评论(0) 推荐(0)

struts2与spring集成时,关于class属性及成员bean自动注入的问题
摘要:http://blog.csdn.net/sun_zhicheng/article/details/24232129 阅读全文

posted @ 2016-05-11 17:08 struggle_beiJing 阅读(300) 评论(0) 推荐(0)

spring四种依赖注入方式
摘要:http://blessht.iteye.com/blog/1162131 阅读全文

posted @ 2016-05-04 17:09 struggle_beiJing 阅读(117) 评论(0) 推荐(0)

Spring @Resource、@Autowired、@Qualifier的注解注入及区别
摘要:http://blog.csdn.net/baple/article/details/17891755 阅读全文

posted @ 2016-05-04 17:07 struggle_beiJing 阅读(176) 评论(0) 推荐(0)

Spring加载resource时classpath*:与classpath:的区别
摘要:http://blog.csdn.net/kkdelta/article/details/5507799 阅读全文

posted @ 2016-05-01 01:57 struggle_beiJing 阅读(145) 评论(0) 推荐(0)

web.xml 配置中classpath: 与classpath*:的区别
摘要:简单理解,classpath就是代表 /WEB-INF /classes/ 这个路径(如果不理解该路径,就把一个web工程发布为war包,然后用winrar查看其包内路径就理解啦) 常用的场景: 在SSH架构中,配置Spring的上下文环境: <!-- Spring Configures --> < 阅读全文

posted @ 2016-05-01 00:29 struggle_beiJing 阅读(340) 评论(0) 推荐(0)

java.io.FileNotFoundException: class path resource [bean/test/User.hbm.xml] cannot be opened because it does not exist
摘要:确定下 WEB-INF/classes下有没有,不是src下哦 工程的src下创建后,会发布到tomcat下项目下的classes中 阅读全文

posted @ 2016-05-01 00:27 struggle_beiJing 阅读(360) 评论(0) 推荐(0)

(Spring加载xml时)org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'.
摘要:ApplicationContext ctx = new ClassPathXmlApplicationContext("test.xml");报错 在启动Spring时,报以下错误,如图: 原因是在xml中spring的xsd的版本配置的不一致,我使用的是spring-2.5.6,但配置文件中配的 阅读全文

posted @ 2016-05-01 00:15 struggle_beiJing 阅读(1745) 评论(0) 推荐(0)

spring 配置触发器 (类似于定时任务)
摘要:为什么会看这个? 发现项目中有的service中的方法没有地方调用。经查,发现在web.xml中加载的spring的配置文件中配置了这个方法, 经查这种方式是触发器,会定时执行,只需要配置一下。可以设置什么时候执行。 具体配置参考如下: http://blog.csdn.net/liaq325/ar 阅读全文

posted @ 2016-04-27 10:38 struggle_beiJing 阅读(648) 评论(0) 推荐(0)

导航