Skip to content

Commit 318d42c

Browse files
authored
Merge pull request #59 from viadee/fix-bootstrap
fix breaking bootstrap paths
2 parents 09802e4 + 3e40515 commit 318d42c

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ This demo app uses spring boot and a h2-database as technologies.
1919

2020
Then browse to `http://localhost:8080`
2121

22+
Or build and run with maven locally:
23+
24+
```shell
25+
mvn spring-boot:run
26+
```
27+
2228
## Building
2329

2430
This is a simple maven project. Just run `maven package`.

pom.xml

+5
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@
6161
<artifactId>bootstrap</artifactId>
6262
<version>5.2.3</version>
6363
</dependency>
64+
<dependency>
65+
<groupId>org.webjars</groupId>
66+
<artifactId>webjars-locator-core</artifactId>
67+
<version>0.54</version>
68+
</dependency>
6469
</dependencies>
6570

6671
<build>

src/main/resources/templates/fragments/footer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<footer>
1010

1111
<script type="text/javascript"
12-
src="webjars/bootstrap/5.1.3/js/bootstrap.min.js"></script>
12+
src="webjars/bootstrap/js/bootstrap.min.js"></script>
1313

1414
</footer>
1515
</div>

src/main/resources/templates/fragments/header.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<div th:fragment="header-css">
44
<!-- this is header-css -->
55
<link rel="stylesheet" type="text/css"
6-
href="webjars/bootstrap/5.1.3/css/bootstrap.min.css" />
6+
href="webjars/bootstrap/css/bootstrap.min.css" />
77
<title>K8s Test App</title>
88
</div>
99
</head>

0 commit comments

Comments
 (0)