1,classpath:applicationContext.xml改为classpath*:applicationContext.xml 
这么写也是一样的效果:classpath*:/applicationContext.xml 
2,在applicationContext.xml引用其它的配置文件: 
如果在同一个jar包这么写, 

Java代码  

1
<import resource="classpath:/applicationContext-action.xml" />

要导入其它jar包中的配置文件,这么写 

Java代码  

1
<import resource="classpath*:/applicationContext-service.xml" />

就这么简单,重新打包、部署、启动成功。 

相关文章:

  • 2021-10-12
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2021-09-26
  • 2021-11-12
  • 2021-05-27
猜你喜欢
  • 2022-12-23
  • 2021-05-25
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案