Skip to content

Commit 95f0eaa

Browse files
committed
1 parent 81dfbda commit 95f0eaa

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ Referenced articles:
3939
- [Java 8 Date & Time with Thymeleaf](http://blog.codeleak.pl/2015/11/how-to-java-8-date-time-with-thymeleaf.html)
4040
- [Spring Boot and Thymeleaf with Maven](http://blog.codeleak.pl/2014/04/how-to-spring-boot-and-thymeleaf-with-maven.html)
4141
- [Spring Boot Integration Testing with Selenium](http://blog.codeleak.pl/2015/03/spring-boot-integration-testing-with.html)
42+
- [Spring Boot and Thymeleaf: Reload templates and static resources without restarting the application](http://blog.codeleak.pl/2016/12/thymeleaf-reload-templates-and-static-resources.html)
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#
2+
# Development profile with templates and static resources reloading: http://blog.codeleak.pl/2016/12/thymeleaf-reload-templates-and-static-resources.html
3+
#
4+
5+
# Path to project
6+
project.base-dir=file:///C:/Projects/github/spring-boot-thymeleaf
7+
8+
# Templates reloading during development
9+
spring.thymeleaf.prefix=${project.base-dir}/src/main/resources/templates/
10+
spring.thymeleaf.cache=false
11+
12+
# Static resources reloading during development
13+
spring.resources.static-locations=${project.base-dir}/src/main/resources/static/
14+
spring.resources.cache-period=0
15+
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
spring.thymeleaf.cache=false
2-
# spring.thymeleaf.prefix=file:///C:/Projects/github/spring-boot-thymeleaf/src/main/resources/templates/
1+
spring.thymeleaf.cache=true

0 commit comments

Comments
 (0)