From 3e405158adf783fb5ff9ba4d02e5ae4d6b57b456 Mon Sep 17 00:00:00 2001 From: Jan Weyrich Date: Mon, 23 Oct 2023 19:13:24 +0200 Subject: [PATCH] fix breaking bootstrap paths --- README.md | 6 ++++++ pom.xml | 5 +++++ src/main/resources/templates/fragments/footer.html | 2 +- src/main/resources/templates/fragments/header.html | 2 +- 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee804f9..dbd5f0a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,12 @@ This demo app uses spring boot and a h2-database as technologies. Then browse to `http://localhost:8080` +Or build and run with maven locally: + + ```shell + mvn spring-boot:run + ``` + ## Building This is a simple maven project. Just run `maven package`. diff --git a/pom.xml b/pom.xml index 7c808d5..3101d7e 100644 --- a/pom.xml +++ b/pom.xml @@ -61,6 +61,11 @@ bootstrap 5.2.3 + + org.webjars + webjars-locator-core + 0.54 + diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index 7b441be..c484e32 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -9,7 +9,7 @@
+ src="webjars/bootstrap/js/bootstrap.min.js">
diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index 2444632..f3f0d91 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -3,7 +3,7 @@
+ href="webjars/bootstrap/css/bootstrap.min.css" /> K8s Test App