remington_young 发表于 2017-1-18 08:42:41

tomcat简单安全配置

简单的应用安全配置方法:

<security-constraint>
<web-resource-collection>
<web-resource-name>资源名称</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>tomcat用户角色名</role-name>
</auth-constraint>
</security-constraint>
<!-- BASIC 基本安全方式 -->
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>登陆欢迎语</realm-name>
</login-config>
页: [1]
查看完整版本: tomcat简单安全配置