环境变量配置:
http://jingyan.baidu.com/article/8065f87fcc0f182330249841.html
登录tomcat管理页面配置:
路径:.\conf\tomcat-users.xml
修改:去掉注释<!-- -->,添加角色manager-gui、admin-gui
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<role rolename="tomcat"/>
<role rolename="role1"/>
<user password="tomcat" roles="role1,manager-gui,admin-gui" username="tomcat"/>
<user password="tomcat" roles="tomcat,role1" username="both"/>
<user password="tomcat" roles="role1" username="role1"/>
Eclipse的web路径配置:
.打开双击tomcat服务器
.修改后截图: