Posted on 2015-01-09 09:32
云自无心水自闲 阅读(664)
评论(0) 编辑 收藏
1. server.xml
在<engine>中添加
<Realm className="org.apache.catalina.realm.MemoryRealm" />
2. tomcat-user.xml
<role rolename="manager"/>
<role rolename="manager-gui"/>
<user username="admin" password="tomcat" roles="manager"/>