当前位置: 移动技术网 > IT编程>软件设计>设计模式 > web.xml设置过滤直接访问

web.xml设置过滤直接访问

2018年05月05日  | 移动技术网IT编程  | 我要评论
<security-constraint>
   <web-resource-collection>
       <web-resource-name>JSPs</web-resource-name>
       <url-pattern>/admin/*</url-pattern><!-- 拒绝直接访问web文件夹下的所有页面 -->
   </web-resource-collection>
   <auth-constraint/>
</security-constraint>
 
<login-config>
   <auth-method>BASIC</auth-method><!-- 验证方式(BASIC/FORM) -->
</login-config>

 

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网