From: Kai Moritz Date: Tue, 3 Jul 2018 08:12:53 +0000 (+0200) Subject: Moved the embedded default-templates into the classpath X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=97a5ab72d72dd4ce77a99e83eb1868fdb533113d;p=examples%2Ffacebook-app Moved the embedded default-templates into the classpath Otherwise, if the app is packaged, the templates will not be included, because the webapp-directory is ignored for builds of type "jar". --- diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 53179d2..ea935bb 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -9,7 +9,7 @@ server.ssl.key-store-password=secret httpclient.timeout.connection=@yourshouter.facebook.app.httpclient.timeout.connection@ httpclient.timeout.read=@yourshouter.facebook.app.httpclient.timeout.read@ -spring.thymeleaf.prefix=/thymeleaf/ +spring.thymeleaf.prefix=classpath:/thymeleaf/ spring.thymeleaf.cache=false spring.datasource.url=@yourshouter.facebook.app.jdbc.url@ diff --git a/src/main/resources/thymeleaf/connect/facebookConnect.html b/src/main/resources/thymeleaf/connect/facebookConnect.html new file mode 100644 index 0000000..5e275d8 --- /dev/null +++ b/src/main/resources/thymeleaf/connect/facebookConnect.html @@ -0,0 +1,18 @@ + + + + Connect to Facebook + + +

Connect to Facebook

+
+
+

+ You aren't connected to Facebook yet. + Click the button to connect with your Facebook account. +

+
+

+
+ + diff --git a/src/main/resources/thymeleaf/connect/facebookConnected.html b/src/main/resources/thymeleaf/connect/facebookConnected.html new file mode 100644 index 0000000..6c28e0d --- /dev/null +++ b/src/main/resources/thymeleaf/connect/facebookConnected.html @@ -0,0 +1,14 @@ + + + + Connect to Facebook + + +

Back HOME

+
+

Connected to Facebook

+

+ You are now connected to your Facebook account. +

+ + diff --git a/src/main/resources/thymeleaf/home.html b/src/main/resources/thymeleaf/home.html new file mode 100644 index 0000000..f7649e5 --- /dev/null +++ b/src/main/resources/thymeleaf/home.html @@ -0,0 +1,14 @@ + + + + Home + + +

Hello, Some User!

+ + + diff --git a/src/main/resources/thymeleaf/profile.html b/src/main/resources/thymeleaf/profile.html new file mode 100644 index 0000000..c6f02e4 --- /dev/null +++ b/src/main/resources/thymeleaf/profile.html @@ -0,0 +1,20 @@ + + + + Public Profile Data + + +

Back HOME

+
+

Public available profile-data

+ + + diff --git a/src/main/resources/thymeleaf/signin.html b/src/main/resources/thymeleaf/signin.html new file mode 100644 index 0000000..687d7f4 --- /dev/null +++ b/src/main/resources/thymeleaf/signin.html @@ -0,0 +1,12 @@ + + + + Sign In + + +
+ + +
+ + diff --git a/src/main/webapp/thymeleaf/connect/facebookConnect.html b/src/main/webapp/thymeleaf/connect/facebookConnect.html deleted file mode 100644 index 5e275d8..0000000 --- a/src/main/webapp/thymeleaf/connect/facebookConnect.html +++ /dev/null @@ -1,18 +0,0 @@ - - - - Connect to Facebook - - -

Connect to Facebook

-
-
-

- You aren't connected to Facebook yet. - Click the button to connect with your Facebook account. -

-
-

-
- - diff --git a/src/main/webapp/thymeleaf/connect/facebookConnected.html b/src/main/webapp/thymeleaf/connect/facebookConnected.html deleted file mode 100644 index 6c28e0d..0000000 --- a/src/main/webapp/thymeleaf/connect/facebookConnected.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Connect to Facebook - - -

Back HOME

-
-

Connected to Facebook

-

- You are now connected to your Facebook account. -

- - diff --git a/src/main/webapp/thymeleaf/home.html b/src/main/webapp/thymeleaf/home.html deleted file mode 100644 index f7649e5..0000000 --- a/src/main/webapp/thymeleaf/home.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - Home - - -

Hello, Some User!

- - - diff --git a/src/main/webapp/thymeleaf/profile.html b/src/main/webapp/thymeleaf/profile.html deleted file mode 100644 index c6f02e4..0000000 --- a/src/main/webapp/thymeleaf/profile.html +++ /dev/null @@ -1,20 +0,0 @@ - - - - Public Profile Data - - -

Back HOME

-
-

Public available profile-data

- - - diff --git a/src/main/webapp/thymeleaf/signin.html b/src/main/webapp/thymeleaf/signin.html deleted file mode 100644 index 687d7f4..0000000 --- a/src/main/webapp/thymeleaf/signin.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - Sign In - - -
- - -
- -