【发布时间】:2011-07-24 02:15:08
【问题描述】:
以下是我在 web.xml 配置文件中的概述。我需要帮助把它按正确的顺序排列。
web.xml 网络应用
1. contextConfigLocation applicationContext.xml
2. defaultHtmlEscape true
3. listeners
4. servlets
5. filters <order sensitive>
6. session-config timeout 120
7. error page 404 500
更新:
我在 tomcat 的日志/localhost.log 中的所有侦听器上都收到 ClassNotFoundException 应用程序启动后没有问题,只是记录表明某些事情已关闭的条目。
我按照 BalusC 的建议组织了它。知道为什么会这样吗?
会话配置应该去哪里?
【问题讨论】:
标签: servlets servlet-filters web.xml servlet-listeners