不定时补充~
1、支持文件列表显示
打开$Tomcat_home$\conf\web.xml,找到
<init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> |
把false改为true。
2、tomcat编码修改utf-8
进入tomcat 的conf目录下找到server.xml,然后在Connector最后加上
URIEncoding="UTF-8" ,然后保存即可。
3、tomcat gui权限
进入tomcat的conf目录下找到tomcat-users.xml,最后加上
<role rolename="manager-gui"/> <role rolename="tomcat"/> <user username="admin" password="admin" roles="tomcat,manager-gui"/> |
4、改变tomcat的默认访问页面
进入tomcat 的conf目录下找到server.xml,找到host标签,添加:
<Context path=""
docBase="项目名称"
reloadable="true"/>
