问题:在浏览器上登录tomcat的Manager时,显示403 Access Denied
问题分析:
在conf/tomcat-users.xml文件中看到这么一段话:
NOTE: By default, no user is included in the "manager-gui" role required
to operate the "/manager/html" web application. If you wish to use this app,
you must define such a user - the username and password are arbitrary.
也就是说,为了考虑安全,tomcat默认还是没有manager-gui的管理权限的,如果想要使用manager的话,需要自行加入管理权限的角色。
解决办法:
在conf/tomcat-users.xml文件中加入:
<role rolename="manager-gui"/>
<user username="lys" password="lys" roles="manager-gui"/>
就OK了!