1、spring.xml中加入(多个properties 用逗号隔开)  <context:property-placeholder location="classpath:jdbc.properties,classpath:config.properties" />

2、spring-mvc.xml 中加入(只加上面一句controller中读取不到值) <context:property-placeholder location="classpath:config.properties" />

 

相关文章:

  • 2022-02-11
  • 2021-11-14
  • 2022-12-23
  • 2021-12-28
  • 2022-02-08
猜你喜欢
  • 2022-01-26
  • 2022-12-23
  • 2021-06-12
  • 2022-12-23
  • 2021-06-23
  • 2021-09-21
  • 2022-01-17
相关资源
相似解决方案