Servlet 3.0 中错误页面的编程配置
Servlet 3.0 允许以编程方式配置 servlet、过滤器和侦听器。 但是错误页面呢?
我看不到 ServletContext 中有任何方法可以做到这一点。
如果能够完全废除 web.xml
那就太好了。
Servlet 3.0 allows for programmatic configuration of servlets, filters and listeners.
But what about error pages?
I can't see that there's any methods for doing that in ServletContext
.
It would be nice to be able to completely abolish the web.xml
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有任何技术方法可以以编程方式添加这样的定义。
There is no technical way one can programmatically add such a definition.