web.xml 独占 url 模式
我想限制对整个应用程序的访问
但对于某些 Servlet 则不然。它们应该是公开的。
有没有一种方法可以轻松做到这一点(我想象一些排除或可能覆盖?)或者我是否必须将文件排列在子文件夹中并允许访问一个文件,同时限制另一个文件?
I want to restrict access to the whole application<url-pattern>/*</url-pattern>
But not to some Servlets. They should be public.
Is there a way to do that easily (I imagine some exclusion or maybe overriding?) or do I have to arrange files in subfolders and allow access to one while restricting to the other?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没有。
是的。
No.
Yes.