diff --git a/pom.xml b/pom.xml
index e835b1e2cc8..ca6792fa97a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -19,6 +19,8 @@
UTF-8
UTF-8
+ 2023-05-10T07:42:50Z
+
2023-05-10T07:42:50Z
@@ -36,6 +38,13 @@
+
+
+
+ org.springframework.boot
+
+
+
@@ -58,6 +67,10 @@
org.springframework.boot
spring-boot-starter-validation
+
+ org.springframework.boot
+ spring-boot-starter-thymeleaf
+
org.springframework.boot
spring-boot-starter-thymeleaf
@@ -85,6 +98,13 @@
runtime
+
+
+ javax.cache
+ cache-api
+ runtime
+
+
javax.cache
@@ -97,7 +117,7 @@
- org.webjars.npm
+ org.webjars
bootstrap
${webjars-bootstrap.version}
@@ -118,6 +138,11 @@
spring-boot-testcontainers
test
+
+ org.springframework.boot
+ spring-boot-testcontainers
+ test
+
org.springframework.boot
spring-boot-docker-compose
@@ -139,6 +164,11 @@
jakarta.xml.bind-api
+
+
+ io.opentelemetry.instrumentation
+
+
io.opentelemetry.instrumentation
@@ -168,6 +198,10 @@
testcontainers-bom
${testcontainers.version}
pom
+ import
+ testcontainers-bom
+ ${testcontainers.version}
+ pom
import
@@ -193,6 +227,11 @@
+
+
+
+
+
@@ -216,6 +255,8 @@
com.puppycrawl.tools
checkstyle
+ ${checkstyle.version}
+ checkstyle
${checkstyle.version}
@@ -236,6 +277,8 @@
src/checkstyle/nohttp-checkstyle.xml
src/checkstyle/nohttp-checkstyle-suppressions.xml
+ ${basedir}
+ src/checkstyle/nohttp-checkstyle-suppressions.xml
${basedir}
**/*
**/.git/**/*,**/.idea/**/*,**/target/**/,**/.flattened-pom.xml,**/*.class
@@ -281,6 +324,12 @@
prepare-agent
+
+ report
+ prepare-package
+
+ report
+
report
prepare-package
@@ -312,6 +361,14 @@
+
+
+ spring-snapshots
+ Spring Snapshots
+ https://www.apache.org/licenses/LICENSE-2.0
+
+
+
spring-snapshots
@@ -340,6 +397,12 @@
true
+
+ spring-milestones
+ Spring Milestones
+ https://repo.spring.io/milestone
+
+
spring-milestones
Spring Milestones
@@ -369,7 +432,12 @@
- org.webjars.npm
+ org.webjars.npm
+
+
+
+
+ org.webjars
bootstrap
${webjars-bootstrap.version}
@@ -388,6 +456,9 @@
generate-resources
+
+ compile
+
compile
@@ -402,6 +473,15 @@
+
+ m2e
+
+
+ m2e.version
+
+
+
+
m2e
@@ -425,6 +505,8 @@
org.apache.maven.plugins
maven-checkstyle-plugin
+ [1,)
+ maven-checkstyle-plugin
[1,)
check
@@ -443,6 +525,10 @@
build-info
+
+
+
+
@@ -467,7 +553,14 @@
+
+
+
+
+
+
+
-
+
\ No newline at end of file
diff --git a/src/main/java/org/springframework/samples/petclinic/config/WebMvcConfig.java b/src/main/java/org/springframework/samples/petclinic/config/WebMvcConfig.java
new file mode 100644
index 00000000000..df1df3d4292
--- /dev/null
+++ b/src/main/java/org/springframework/samples/petclinic/config/WebMvcConfig.java
@@ -0,0 +1,16 @@
+package org.springframework.samples.petclinic.config;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
+import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
+
+@Configuration
+public class WebMvcConfig implements WebMvcConfigurer {
+
+ @Override
+ public void addResourceHandlers(ResourceHandlerRegistry registry) {
+ registry.addResourceHandler("/webjars/**")
+ .addResourceLocations("classpath:/META-INF/resources/webjars/")
+ .resourceChain(true);
+ }
+}
\ No newline at end of file