Referencing Environment Variables in web.xml

前端 未结 7 1262
無奈伤痛
無奈伤痛 2020-11-30 01:37

I\'m pre-packaging a JSP web-app that relies on some file path settings found within web.xml. These settings are unknown at packaging time, because they reference a path the

7条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 02:19

    Environment variables can be accessed in xml files like this:

    ${env.ENVIRONMENT_VARIABLE_NAME}
    

    Obviously there may be issues with user account settings and access issues, but i have tried with system variables and it works!

提交回复
热议问题