IDEA的使用之spring中ClassPathXmlApplicationContext读取路径

之前习惯使用eclipse的应用以后总是会把spring的配置文件放在src目录下,然后无论怎么写路径问题都无法读取spring.xml。

正确的配置文件放在resources目录下:

resource目录可以在以下界面中可以自定义:

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客企业服务