Struts 配置虚拟目录

来源:互联网 发布:数据走势图 编辑:程序博客网 时间:2024/05/29 13:55

在TOMCAT安装目录的conf/server.xml文件中加一条:

<Context path="/study" docBase="g:/java/webapps" debug="0" crossContext="true" reloadable="true">           
  </Context>

这样就可以在地址栏输入:http://127.0.0.1:8080/study 来访问webapps文件夹下的页面。