spring的XML配置文件在项目文件夹中的位置

spring的XML配置文件在项目文件夹中的位置,第1张

spring的XML配置文件在项目文件夹中的位置

我的配置文件是这个Bean.xml
1.放在src下
2.放在java文件下
否则会报错:Spring报错:java.io.FileNotFoundException: class path resource [****.xml] cannot be opened because it does not exist

详细可参考https://www.cnblogs.com/sharpest/p/7446332.html

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5722317.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-18
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存