<security-constraint>
<web-resource-collection>
<web-resource-name>dd
</web-resource-name>
<url-pattern>
/getServletConfig
</url-pattern>
<http-method>
GET
</http-method>
<http-method>
POST
</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>
yangjianjun
</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC
</auth-method>
<realm-name>passwords
</realm-name>
<form-login-config>
<form-login-page>
/login.jsp
</form-login-page>
<form-error-page>
/error.jsp
</form-error-page>
</form-login-config>
</login-config>
<web-resource-collection>
<web-resource-name>dd
</web-resource-name>
<url-pattern>
/getServletConfig
</url-pattern>
<http-method>
GET
</http-method>
<http-method>
POST
</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>
yangjianjun
</role-name>
</auth-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC
</auth-method>
<realm-name>passwords
</realm-name>
<form-login-config>
<form-login-page>
/login.jsp
</form-login-page>
<form-error-page>
/error.jsp
</form-error-page>
</form-login-config>
</login-config>
<web-resource-collection>
<web-resource-name>dd
</web-resource-name>
<url-pattern>
/getServletConfig
</url-pattern>
<http-method>
GET
</http-method>
<http-method>
POST
</http-method>
</web-resource-collection>
<auth-constraint>
<role-name>
tomcat
</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>
CONFIDENTIAL
</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC
</auth-method>
<realm-name>passwords
</realm-name>
<form-login-config>
<form-login-page>
/login.jsp
</form-login-page>
<form-error-page>
/error.jsp
</form-error-page>
</form-login-config>
</login-config>
欢迎讨论。
那位大虾烁烁。。
我的MSN是 [email protected]
<web-resource-collection>
<web-resource-name>dd
</web-resource-name>
<url-pattern>
/getServletConfig
</url-pattern>