spring问题整理
gwx320699
这个作者很懒,什么都没留下…
展开
-
初学Spring出现找不到applicationContext.xml
问题: 初学Spring在用Resource rs=new ClassPathResource("applicationContext.xml"); 出现文件找不到的问题,或者你在new ClassPathResource("F://...//applicationContext.xml");一样会出现找不到的情况。网上百度找到了解决方案:原因:ClassPathReso...转载 2018-05-23 16:43:30 · 4668 阅读 · 1 评论 -
Spring中ClassPathXmlApplication与FileSystemXmlApplicationContext的区别
转自:https://www.cnblogs.com/ninth/p/6841608.html一、概述在项目中遇到加载不到Spring配置文件,简单分析后,写此文备忘!二、测试所需资源TestBean.javapublic class TestBean { public TestBean(){ System.out.println(this.getClass().getNa...转载 2018-05-23 16:56:52 · 133 阅读 · 0 评论