各位dx,我有个问题,现在我做一个练习中,把config.xml放在了工程的底层,和WEB-INF一个层次,我在程序里用ClassPathResource res=new ClassPathResource("config.xml");
来加载,系统反馈class path resource [config.xml] cannot be opened because it does not exist,请问这个类在使用时,文件路径如何写?
来加载,系统反馈class path resource [config.xml] cannot be opened because it does not exist,请问这个类在使用时,文件路径如何写?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货