http://localhost:8080/admin
user:tdg
password:tdg

解决方案 »

  1.   

    <?xml version='1.0' encoding='utf-8'?>
    <tomcat-users>
      <role rolename="tomcat"/>
      <role rolename="role1"/>
      <user username="tdg" password="tdg" roles="tomcat,role1"/>
      <user username="tomcat" password="tomcat" roles="tomcat"/>
      <user username="both" password="tomcat" roles="tomcat,role1"/>
      <user username="role1" password="tomcat" roles="role1"/>
      <user username="yourName1" password="yourPwd1" roles="admin"/>
      <user username="yourName2" password="yourPwd2" roles="manager"/>
    </tomcat-users>http://localhost:8080/admin
    user:yourName1
    password:yourPwd1http://localhost:8080/manager
    user:yourName2
    password:yourPwd2