Added overwrite- and fallback-content
authorKai Moritz <kai@juplo.de>
Fri, 8 Jan 2021 15:28:07 +0000 (16:28 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 16 Jan 2021 14:36:50 +0000 (15:36 +0100)
src/main/resources/fallback/error/404.html [new file with mode: 0644]
src/main/resources/fallback/error/4xx.html [new file with mode: 0644]
src/main/resources/fallback/error/5xx.html [new file with mode: 0644]
src/main/resources/fallback/index.html [new file with mode: 0644]
src/main/resources/overwrite/favicon.ico [new file with mode: 0644]
src/main/resources/overwrite/test.html [new file with mode: 0644]

diff --git a/src/main/resources/fallback/error/404.html b/src/main/resources/fallback/error/404.html
new file mode 100644 (file)
index 0000000..a249ef6
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>404 - NOT FOUND</title>
+  </head>
+  <body>
+    <h1>404 - NOT FOUND</h1>
+    <p>
+      Start any webserver at <strong>http://localhost:8888</strong> or
+      overwrite <strong>origin</strong> in the
+      <strong>application.properties</strong>...
+    </p>
+  </body>
+</html>
diff --git a/src/main/resources/fallback/error/4xx.html b/src/main/resources/fallback/error/4xx.html
new file mode 100644 (file)
index 0000000..574fdc9
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>400er ERROR on Client-Side</title>
+  </head>
+  <body>
+    <h1>400er ERROR on Client-Side</h1>
+    <p>
+      Start any webserver at <strong>http://localhost:8888</strong> or
+      overwrite <strong>origin</strong> in the
+      <strong>application.properties</strong>...
+    </p>
+  </body>
+</html>
diff --git a/src/main/resources/fallback/error/5xx.html b/src/main/resources/fallback/error/5xx.html
new file mode 100644 (file)
index 0000000..72e9d93
--- /dev/null
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>500er ERROR on Server-Side</title>
+  </head>
+  <body>
+    <h1>500er ERROR on Server-Side</h1>
+    <p>
+      Start any webserver at <strong>http://localhost:8888</strong> or
+      overwrite <strong>origin</strong> in the
+      <strong>application.properties</strong>...
+    </p>
+  </body>
+</html>
diff --git a/src/main/resources/fallback/index.html b/src/main/resources/fallback/index.html
new file mode 100644 (file)
index 0000000..1c33cf2
--- /dev/null
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>HttpResources-Demo with Spring Boot</title>
+  </head>
+  <body>
+    <h1>HttpResources-Demo with Spring Boot</h1>
+    <h2>Fallback Content</h2>
+    <p>
+      This content is only visible, if it does not on the origin
+      server, or if no orign server is running.
+    </p>
+    <p>
+      Start any webserver at <strong>http://localhost:8888</strong> or
+      overwrite <strong>origin</strong> in the
+      <strong>application.properties</strong>...
+    </p>
+    <p>
+      Overwritten content:
+    </p>
+    <ul>
+      <li><a href="/favicon.ico">favicon.ico</a></li>
+      <li><a href="/test.html">test.html</a></li>
+    </ul>
+  </body>
+</html>
diff --git a/src/main/resources/overwrite/favicon.ico b/src/main/resources/overwrite/favicon.ico
new file mode 100644 (file)
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 (file)
index 0000000..ab0557a
--- /dev/null
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>HttpResources-Demo with Spring Boot</title>
+  </head>
+  <body>
+    <h1>HttpResources-Demo with Spring Boot</h1>
+    <h2>Overwrite Content</h2>
+    <p>
+      This content is always visible.
+    </p>
+    <p>
+      Start any webserver at <strong>http://localhost:8888</strong> or
+      overwrite <strong>origin</strong> in the
+      <strong>application.properties</strong>...
+    </p>
+    <p>
+      Overwritten content:
+    </p>
+    <ul>
+      <li><a href="/favicon.ico">favicon.ico</a></li>
+      <li>test.html</li>
+    </ul>
+  </body>
+</html>