使用tomcat时,不用给webapps文件放入文件,直接访问项目方法

更改在tomcat下conf文件夹中的server.xml修改

目的:不用每次更改文件后都要想webapp文件放入更新后的文件,可直接运行,提高效率

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">(原有部分)
<!-- 设置默认项目名称 -->
<Context docBase="D:/workGit/circleset" path="/circleset" debug="0" reloadable="true" />(新增部分)

修改后重启tomcat 访问localhost:8080/circleset

 

posted @ 2018-03-15 11:27  烟蓑雨笠卷单行  阅读(300)  评论(1编辑  收藏  举报