forked from digma-ai/forkof-spring-petclinic
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Issue Description
The application is experiencing a "Webjars Bootstrap Resource Not Found Error" when trying to access Bootstrap resources through the webjar path.
Root Cause
- Missing proper Webjars resource configuration in Spring Boot
- CSS profile not activated during build process
Solution
-
Added proper Webjars configuration in application.properties:
spring.mvc.static-path-pattern=/webjars/** spring.web.resources.static-locations=classpath:/META-INF/resources/webjars/ spring.web.resources.chain.strategy.content.enabled=true spring.web.resources.chain.strategy.content.paths=/webjars/**
-
CSS profile must be activated during build:
./mvnw clean package -P css
Related PR
See PR #440 for the implementation.
Validation Steps
- Build with CSS profile:
./mvnw clean package -P css - Verify contents of target/webjars directory
- Start application and verify Bootstrap resources are accessible through webjar paths
Metadata
Metadata
Assignees
Labels
No labels