解决方案 »

  1.   

    tomcat每次更改完都重新启动了  然后总是出现这个:401 Unauthorized
    You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your installation. That file will contain the credentials to let you use this webapp. You will need to add manager role to the config file listed above. For example: <role rolename="manager"/>
    <user username="tomcat" password="s3cret" roles="manager"/>
    For more information - please see the Manager App HOW-TO. 不知道该怎么没解决?
      

  2.   

    加上这个 <user username="tomcat" password="s3cret" roles="manager"/>。  用这个  试试 。
      

  3.   

    <tomcat-users>
      <role rolename="manager"/> // 角色
      <user username="admin" password="admin" roles="manager"/>
    </tomcat-users>