Reading Web Application Resources

前端 未结 3 1255
别跟我提以往
别跟我提以往 2020-12-19 09:45

Background

Developing a simple web application (Eclipse + JBoss + Apache Tomcat) to generate XML files.

Problem

The \"Business Area\" list querie

3条回答
  •  无人及你
    2020-12-19 09:57

    I'd put them in WEB-INF/classes, or bundle them inside your application.jar which will go inside WEB-INF/lib. Then you can load them from the classpath as explained here and here

    Even better, if you use maven, the best practice is to put these type of files inside src/main/resources and then maven will take care of this for you.

提交回复
热议问题