From e9e1953a23f144b29e29e1308ed056d12bd88fcb Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Mon, 25 Jan 2016 01:07:32 +0100 Subject: [PATCH] Moved Thymeleaf-templates to src/main/webapp to enable hot reload See http://juplo.de/fix-hot-reload-of-thymeleaf-templates-in-spring-bootrun/ --- src/main/resources/application.properties | 3 +++ .../thymeleaf}/connect/facebookConnect.html | 0 .../thymeleaf}/connect/facebookConnected.html | 0 src/main/{resources/templates => webapp/thymeleaf}/home.html | 0 .../{resources/templates => webapp/thymeleaf}/profile.html | 2 +- 5 files changed, 4 insertions(+), 1 deletion(-) rename src/main/{resources/templates => webapp/thymeleaf}/connect/facebookConnect.html (100%) rename src/main/{resources/templates => webapp/thymeleaf}/connect/facebookConnected.html (100%) rename src/main/{resources/templates => webapp/thymeleaf}/home.html (100%) rename src/main/{resources/templates => webapp/thymeleaf}/profile.html (96%) diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index b5ee75e..80f6121 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,5 +1,8 @@ spring.social.facebook.appId=@facebook.app.id@ spring.social.facebook.appSecret=@facebook.app.secret@ +spring.thymeleaf.prefix=/thymeleaf/ +spring.thymeleaf.cache=false + logging.level.org.springframework.social=debug logging.level.de.juplo.yourshouter=info diff --git a/src/main/resources/templates/connect/facebookConnect.html b/src/main/webapp/thymeleaf/connect/facebookConnect.html similarity index 100% rename from src/main/resources/templates/connect/facebookConnect.html rename to src/main/webapp/thymeleaf/connect/facebookConnect.html diff --git a/src/main/resources/templates/connect/facebookConnected.html b/src/main/webapp/thymeleaf/connect/facebookConnected.html similarity index 100% rename from src/main/resources/templates/connect/facebookConnected.html rename to src/main/webapp/thymeleaf/connect/facebookConnected.html diff --git a/src/main/resources/templates/home.html b/src/main/webapp/thymeleaf/home.html similarity index 100% rename from src/main/resources/templates/home.html rename to src/main/webapp/thymeleaf/home.html diff --git a/src/main/resources/templates/profile.html b/src/main/webapp/thymeleaf/profile.html similarity index 96% rename from src/main/resources/templates/profile.html rename to src/main/webapp/thymeleaf/profile.html index f0b3dab..c6f02e4 100644 --- a/src/main/resources/templates/profile.html +++ b/src/main/webapp/thymeleaf/profile.html @@ -1,7 +1,7 @@ - Hello Facebook + Public Profile Data

Back HOME

-- 2.20.1