在Spring Boot+ Freemarker 中獲取項目根目錄

好多人 都說:html 在配置文件中加入 spring spring.freemarker.request-context-attribute=requestcode 在頁面就能夠htm <#assign ctx=request.contextPath /> 可是發現前臺依然爲 null(多是個人配置有問題)blog 後來發現能夠這樣使用class <#assign ctx=springMacro
相關文章
相關標籤/搜索