From: Kai Moritz Date: Fri, 8 Jan 2021 15:28:07 +0000 (+0100) Subject: Added overwrite- and fallback-content X-Git-Url: https://juplo.de/gitweb/?p=demos%2Fhttpresources;a=commitdiff_plain;h=428aa006c92c871faff0f05b1ee97342cb3c0297 Added overwrite- and fallback-content --- diff --git a/src/main/resources/fallback/error/404.html b/src/main/resources/fallback/error/404.html new file mode 100644 index 0000000..a249ef6 --- /dev/null +++ b/src/main/resources/fallback/error/404.html @@ -0,0 +1,14 @@ + + + + 404 - NOT FOUND + + +

404 - NOT FOUND

+

+ Start any webserver at http://localhost:8888 or + overwrite origin in the + application.properties... +

+ + diff --git a/src/main/resources/fallback/error/4xx.html b/src/main/resources/fallback/error/4xx.html new file mode 100644 index 0000000..574fdc9 --- /dev/null +++ b/src/main/resources/fallback/error/4xx.html @@ -0,0 +1,14 @@ + + + + 400er ERROR on Client-Side + + +

400er ERROR on Client-Side

+

+ Start any webserver at http://localhost:8888 or + overwrite origin in the + application.properties... +

+ + diff --git a/src/main/resources/fallback/error/5xx.html b/src/main/resources/fallback/error/5xx.html new file mode 100644 index 0000000..72e9d93 --- /dev/null +++ b/src/main/resources/fallback/error/5xx.html @@ -0,0 +1,14 @@ + + + + 500er ERROR on Server-Side + + +

500er ERROR on Server-Side

+

+ Start any webserver at http://localhost:8888 or + overwrite origin in the + application.properties... +

+ + diff --git a/src/main/resources/fallback/index.html b/src/main/resources/fallback/index.html new file mode 100644 index 0000000..1c33cf2 --- /dev/null +++ b/src/main/resources/fallback/index.html @@ -0,0 +1,26 @@ + + + + HttpResources-Demo with Spring Boot + + +

HttpResources-Demo with Spring Boot

+

Fallback Content

+

+ This content is only visible, if it does not on the origin + server, or if no orign server is running. +

+

+ Start any webserver at http://localhost:8888 or + overwrite origin in the + application.properties... +

+

+ Overwritten content: +

+ + + diff --git a/src/main/resources/overwrite/favicon.ico b/src/main/resources/overwrite/favicon.ico new file mode 100644 index 0000000..d803843 Binary files /dev/null and b/src/main/resources/overwrite/favicon.ico differ diff --git a/src/main/resources/overwrite/test.html b/src/main/resources/overwrite/test.html new file mode 100644 index 0000000..ab0557a --- /dev/null +++ b/src/main/resources/overwrite/test.html @@ -0,0 +1,25 @@ + + + + HttpResources-Demo with Spring Boot + + +

HttpResources-Demo with Spring Boot

+

Overwrite Content

+

+ This content is always visible. +

+

+ Start any webserver at http://localhost:8888 or + overwrite origin in the + application.properties... +

+

+ Overwritten content: +

+ + +