Java ServletContext

前端 未结 5 800
遥遥无期
遥遥无期 2021-01-23 16:26

I have a JSP web site, not Spring MVC, and it has a config file web.xml.

There are a couple of settings within the web.xml file that I\'d like to get.

However, I

5条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-23 16:58

    I really don't like classes reading from web.xml... Why do you need that? IMHO it would be easier, cleaner and by far much more manageable if you prepared a properties file and a manager class that reads from there.

提交回复
热议问题