You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Developer tools are automatically disabled when running a fully packaged application. If your application is launched using java -jar or if it’s started using a special classloader, then it is considered a “production application”.
This sample contains a single bean annotated @SpringBootApplication and has one method annotated @PostConstruct. In the method, just output spring.thymeleaf.cache's value and exit(0) .
After running assembled jar, we will see
spring.thymeleaf.cache = false
will be logged.
Expected is
spring.thymeleaf.cache = NOT_SET
Other
If I exclude spring-boot-devtools from fat jar by adding
springBoot {
excludeDevtools = true
}
into build.gradle. spring.thymeleaf.cache = NOT_SET is logged as expected.
The text was updated successfully, but these errors were encountered:
According to document, spring-boot-devtools are automatically disabled in fully packaged application. But NOT.
http://docs.spring.io/spring-boot/docs/current/reference/html/using-boot-devtools.html
Environment
Reproduce
I created a sample project.
Please checkout https://github.com/kazuki-ma/devtools-report.
and run
./gradlew clean assemble && java -jar ./build/libs/devtools-report-1.0-SNAPSHOT.jar
This sample contains a single bean annotated
@SpringBootApplication
and has one method annotated@PostConstruct
. In the method, just outputspring.thymeleaf.cache
's value andexit(0)
.After running assembled jar, we will see
will be logged.
Expected is
Other
If I exclude spring-boot-devtools from fat jar by adding
into
build.gradle
.spring.thymeleaf.cache = NOT_SET
is logged as expected.The text was updated successfully, but these errors were encountered: