在没有用springboot内置tomcat的时候配置了tomcat的虚拟目录
创建xml文件
conf/Catalina/localhost/filepath.xml
文件内容
<Context path="/filepath" docBase="C:\filepath" />
在springboot内置的tomcat中应该怎么去实现?
目前的解决办法是将springboot打包为war
然后部署在自己的tomcat下
server.contextPath=/lkl
在没有用springboot内置tomcat的时候配置了tomcat的虚拟目录
创建xml文件
conf/Catalina/localhost/filepath.xml
文件内容
<Context path="/filepath" docBase="C:\filepath" />
目前的解决办法是将springboot打包为war
然后部署在自己的tomcat下
server.contextPath=/lkl