【发布时间】:2018-05-13 00:21:06
【问题描述】:
我使用 Spring Initializer、嵌入式 Tomcat、Thymeleaf 模板引擎生成了一个 Spring Boot Web 应用程序,并将其打包为可执行 JAR 文件。
使用的技术:
Spring Boot 2.0.0.M6,Java 8,maven
我在application.properties 中定义了这个属性
server.servlet.context-path=iberiaWebUtils
我想知道在我的 Thymeleaf 模板中是否有与
等效的内容<a href="/<%=request.getContextPath()%>/iberiaReport/download">
【问题讨论】:
标签: java spring spring-boot thymeleaf