摘要: 在项目对应的容器里tomcat-users.xml文件当中添加角色及用户: <role rolename="admin"/> <user username="zhangsan" password="123" roles="admin"/> 对应的web.xml中配置如下: <security-constraint> <web-resource-collection> <web-resource-name>my auth</web-resource-n 阅读全文
posted @ 2012-12-23 21:12 木森2015 阅读(383) 评论(0) 推荐(0)