forked from digma-ai/otel-sample-app-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Issue Description
The application is experiencing 404 errors when trying to access Bootstrap WebJar resources through the /webjars/**
endpoint.
Root Cause
- Missing explicit WebJar resource configuration in Spring Boot
- Resource chain strategy not properly configured for WebJar paths
- Static resource locations not explicitly defined
Solution
A PR has been created (#69) that adds proper WebJar resource configuration:
- Adds explicit WebJar resource mapping in application.yml
- Configures resource chain strategy for proper caching
- Defines static resource locations including WebJar paths
Build Instructions
To properly build the application with WebJar resources:
mvn clean package -Pcss
The css profile must be activated to ensure proper unpacking of WebJar resources.
Testing
After applying the fix, verify that Bootstrap resources are accessible at:
/webjars/bootstrap/5.2.3/css/bootstrap.min.css