web.xml settings filter direct access

<security-constraint>
   <web-resource-collection>
       <web-resource-name>JSPs</web-resource-name>
       <url-pattern>/admin /* </url-pattern><!-- Deny direct access to all pages under the web folder-->
   </web-resource-collection>
   <auth-constraint/>
</security-constraint>
 
<login-config>
   <auth-method>BASIC</auth-method><!-- 验证方式(BASIC/FORM) -->
</login-config>

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325316525&siteId=291194637