在tomcat7.0以后的版本中配置管理平台用户,需要这样配置:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
<user username="sam" password="sam" roles="admin,manager-gui"/>
</tomcat-users>
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="admin"/>
<role rolename="manager-gui"/>
<user username="admin" password="admin" roles="manager-gui"/>
<user username="sam" password="sam" roles="admin,manager-gui"/>
</tomcat-users>