在Spring Boot+ Freemarker 中获取项目根目录

好多人 都说:html 在配置文件中加入 spring spring.freemarker.request-context-attribute=requestcode 在页面就能够htm <#assign ctx=request.contextPath /> 可是发现前台依然为 null(多是个人配置有问题)blog 后来发现能够这样使用class <#assign ctx=springMacro
相关文章
相关标签/搜索