idea tomcat配置在虚拟路径的两种方法

1.通过配置server.xml文件

1.1在tomcat安装目录下找到conf/server.xml

找到host标签,添加<context>标签,path为虚拟路径,docBase为真实路径

1.3将Deploy applications configured in Tomcat instance勾上

2.直接使用idea设置虚拟路径

然后找到你想要配置的目录,

然后配置虚拟路径

参考博客:https://blog.csdn.net/cheney550995353/article/details/70185282

猜你喜欢

转载自blog.csdn.net/qq_41725214/article/details/82889010