设置web工程安全访问(security-constraint)
<br />在我们web工程的web.xml中设置security-constraint属性(即安全-约束)<br />
配置如下:<br />
<security-constraint><br /><br />
<web-resource-collection><br />
<web-resource-name>User Basic Auth</web-resource-name><br />
<url-pattern>/*</url-pattern><br />
原创
2011-04-15 15:50:00 ·
5524 阅读 ·
0 评论