spring boot2.0配置contextpath如下
server.servlet.context-path=/abc(此处自定义)
spring.freemarker.request-context-attribute=request
在freemark中直接使用${request.contextPath}获取contextPath
spring boot2.0配置contextpath如下
server.servlet.context-path=/abc(此处自定义)
spring.freemarker.request-context-attribute=request
在freemark中直接使用${request.contextPath}获取contextPath