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

正确的配置文件放在resources目录下:
IDEA的使用之spring中ClassPathXmlApplicationContext读取路径

resource目录可以在以下界面中可以自定义:
IDEA的使用之spring中ClassPathXmlApplicationContext读取路径

相关文章:

  • 2022-12-23
  • 2018-08-30
  • 2021-05-20
  • 2021-11-18
  • 2022-02-09
  • 2022-12-23
  • 2021-12-13
  • 2022-02-04
猜你喜欢
  • 2022-12-23
  • 2021-12-06
  • 2021-05-12
  • 2022-12-23
相关资源
相似解决方案