我想知道是否有可能通过使用属性文件在web.xml
中设置属性。例如在web.xml:如何使用属性文件在web.xml中设置值
<context-param>
<param-name>Map.MyJNDI</param-name>
<param-value>java:comp/env/jdbc/${my.computer}</param-value>
</context-param>
和application.properties
将是:
# My computer's name
my.computer=eniac
感谢您的回答。 Tomas
检查这些: - http://stackoverflow.com/questions/15380817/properties-file-as-init-param-in-web-xml - http://stackoverflow.com/questions/12099008 /如何对包括值从 - 属性文件 - 到 - 网络的XML – Chepech 2013-11-01 17:34:16