出现这个问题看看tomcat的配置哦

修改tomcat /conf/ tomcat-users.xml

<tomcat-users> 
   <role rolename="tomcat"/> 
   <role rolename="role1"/> 
   <role rolename="manager-script"/> 
   <role rolename="manager-gui"/> 
   <role rolename="manager-status"/> 
   <role rolename="admin-gui"/> 
   <role rolename="admin-script"/> 
   <user username="tomcat" password="tomcat" roles="manager-gui,manager-script,tomcat,admin-gui,admin-script"/> 
</tomcat-users>

重启就可以了