首页 > springBoot 怎么实现内置tomcat配置虚拟目录

springBoot 怎么实现内置tomcat配置虚拟目录

在没有用springboot内置tomcat的时候配置了tomcat的虚拟目录

创建xml文件

conf/Catalina/localhost/filepath.xml

文件内容

<Context path="/filepath" docBase="C:\filepath" />

在springboot内置的tomcat中应该怎么去实现?

目前的解决办法是将springboot打包为war然后部署在自己的tomcat下


server.contextPath=/lkl

【热门文章】
【热门文章】