【发布时间】:2015-02-26 22:35:20
【问题描述】:
有没有办法在不运行和构建war文件的情况下发布Thymeleaf模板?
这是我的 gradle 文件的样子:
apply plugin: 'war'
war {
baseName = 'bootBlog'
version = '0.1.0'
}
repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.spring.io/libs-release" }
}
configurations {
providedRuntime
}
dependencies {
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-mongodb")
compile("org.springframework.boot:spring-boot-starter-actuator")
testCompile("junit:junit")
providedRuntime("org.springframework.boot:spring-boot-starter-tomcat")
【问题讨论】:
-
您想在生产环境还是开发环境中执行此操作?我认为解决方案不会在 gradle 中。
-
将在开发环境中进行。寻找 gradle 特定的解决方案。
标签: spring spring-boot thymeleaf