tomcat_设置项目根路径为tomcat

来源:互联网 发布:linux 发送http请求 编辑:程序博客网 时间:2024/06/05 17:19

配置代码如下:

<Context path="" docBase="project root" debug="0" reloadable="true"/>

以上配置可以实现,在访问项目时,不必输入项目名:

http://localhost:8080/hello/json

原创粉丝点击