gpt4 book ai didi

java - web.xml 独占 url 模式

转载 作者:行者123 更新时间:2023-11-30 04:54:42 31 4
gpt4 key购买 nike

我想限制对整个应用程序的访问 <url-pattern>/*</url-pattern>但对于某些 Servlet 则不然。它们应该是公开的。

有没有一种方法可以轻松做到这一点(我想象有一些排除或可能覆盖?)或者我是否必须将文件排列在子文件夹中并允许访问一个文件而限制另一个文件?

最佳答案

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?

是的。

关于java - web.xml 独占 url 模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8914678/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com