在tomcat-users.xml中这样添加用户
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="username" password="password" roles="manager-gui,admin-gui"/>
</tomcat-users>
注意:如果角色不为:manager-gui,admin-gui就会出现403错误!
在tomcat-users.xml中这样添加用户
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="username" password="password" roles="manager-gui,admin-gui"/>
</tomcat-users>
注意:如果角色不为:manager-gui,admin-gui就会出现403错误!
转载于:https://my.oschina.net/shengguoqiang/blog/877531