解决方案:

  (1) 在Spring 3.0中,可以写:

Xml代码  
<context:property-placeholder location="xxx.properties" ignore-unresolvable="true"  
/>  
<context:property-placeholder location="yyy.properties" ignore-unresolvable="true"  
/>  

 

注意两个都要加上ignore-unresolvable="true",一个加另一个不加也是不行的

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-20
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-01-07
  • 2021-06-15
  • 2021-08-20
  • 2021-09-21
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案