Tomcat JDBC vs. DataSource Realm
问题 For webapp testapp which has the following in its web.xml (among other things) <security-constraint> <web-resource-collection> <web-resource-name>My JSP</web-resource-name> <url-pattern>*.secured</url-pattern> <url-pattern>/login</url-pattern> <http-method>GET</http-method> <http-method>POST</http-method> </web-resource-collection> <auth-constraint> <role-name>mobileusers</role-name> </auth-constraint> <!-- <user-data-constraint> <transport-guarantee>CONFIDENTIAL</transport-guarantee> </user