在xml文件里获取jvm环境变量

 1    <context-param>
 2              <param-name> contextConfigLocation</param-name >
 3              <param-value>
 4                   file:${home}${file.separator}amn_sms${file.separator} config${file.separator}context.xml
 5              </param-value>
 6    </context-param>
 7    <listener>
 8              <listener-class>
 9                   org.springframework.web.context.ContextLoaderListener
10              </listener-class>
11     </listener>
Author:Pale Life
From: 
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。
原文地址:https://www.cnblogs.com/live365wang/p/2732575.html