tomcat虚拟路径配置

来源:互联网 发布:网络电玩游戏 编辑:程序博客网 时间:2024/05/16 15:05
本项目课件上传目录默认在服务器的C:/admin/uploadfile目录中,因此需要配置虚拟路径,如下:
1.tomcat安装目录,找到server.xml文件,在host标签中添加:
<Context path="/filePath" docBase="C:/admin/uploadfile" debug="0" reloadable="true"/>


2.根据tomcat中配置的路径D:/admin/uploadfile,在C盘根目录中创建目录/admin/uploadfile


3.重启tomcat
1 0
原创粉丝点击