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.****.net/cheney550995353/article/details/70185282