配置tomcat7,避免403 Access Denied错误
在context.xml中改
<Context reloadable="true">
在server.xml改
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" URIEncoding="UTF-8"/>
在tomcat-users.xml中改为
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<user username="zby" password="tomcat" roles="manager-gui,admin-gui"/>
</tomcat-users>
华丽的分割线---------------------------------------------
如果角色不为:manager-gui,admin-gui就会出现403错误~