Tomcat 中的HTTP BASIC 验证

Tomcat 中的HTTP BASIC 验证
取决与 tomcat-user.xml
<security-constraint>
<web-resource-collection>
<web-resource-name>
admin
</web-resource-name>
<url-pattern>
/sysMgr/*
</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>HSIPCC安全验证</realm-name>
</login-config>
<security-role>
<role-name>
tomcat
</role-name>
</security-role>

你可能感兴趣的:(tomcat,xml)