(关于加载配置文件)偶是Spring新手,做试验的时候遇到了点问题,请大虾们不吝赐教! com.gbsc.propertyeditor.PropertyEditorBeans.xml这个xml文件不存在或者位置不对 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 问题解决了:把 ClassPathResource resource = new ClassPathResource ("com.gbsc.propertyeditor.PropertyEditorBeans.xml"); 改成: ClassPathResource resource = new ClassPathResource ("PropertyEditorBeans.xml"); 就可以了,挺Stupid的错误,看来细心很重要,谢谢啦。我多写了一段:"com.gbsc.propertyeditor.“(因为我一开始是把它放在src\com\gbsc\propertyeditor下面的,后来移动了)如果PropertyEditorBeans.xml文件是在src\com\gbsc\propertyeditor下面的话,像"com.gbsc.propertyeditor.PropertyEditorBeans.xml"这样写也不对,应该是"com/gbsc/propertyeditor/PropertyEditorBeans.xml"才对。 这个文件应该在classpath的/com/gbsc/propertyeditor/下面, 答辩通过,散分 hibernate DetachedCriteria对象 所得结果集问题 请大鸟们帮帮忙 用struts怎么做图片按钮? [java]如何用java实现邮件服务器的开发 这个问题很严重, JSP显示sqlserver数据时产生乱码(菜鸟问题) 请大家推荐一半 java设计模式 的好书!! 小弟刚开始接触JAVA,请教一些问题,大家随便指教,你们都会的! 请问JDBC中驱动程序类的问题一个,在线等待 怎样用JAVA程序完全备份SQL SERVER数据库? 急,如何由URL得到File对象???
把
ClassPathResource resource = new ClassPathResource
("com.gbsc.propertyeditor.PropertyEditorBeans.xml");
改成:
ClassPathResource resource = new ClassPathResource
("PropertyEditorBeans.xml"); 就可以了,挺Stupid的错误,看来细心很重要,谢谢啦。我多写了一段:"com.gbsc.propertyeditor.“(因为我一开始是把它放在src\com\gbsc\propertyeditor下面的,后来移动了)
如果PropertyEditorBeans.xml文件是在src\com\gbsc\propertyeditor下面的话,像"com.gbsc.propertyeditor.PropertyEditorBeans.xml"这样写也不对,应该是"com/gbsc/propertyeditor/PropertyEditorBeans.xml"才对。