spring boot2 freemark 配置contextpath

  • Post author:
  • Post category:其他


spring boot2.0配置contextpath如下

server.servlet.context-path=/abc(此处自定义)

spring.freemarker.request-context-attribute=request

在freemark中直接使用${request.contextPath}获取contextPath



版权声明:本文为java_pet原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。