Skip to content

Fix WebJars Bootstrap Resource 404 Error-created-by-agentic #69

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shaykeren
Copy link

This PR fixes the 404 error when accessing WebJar Bootstrap resources by:

  1. Adding explicit WebJar resource configuration in application.yml
  2. Configuring proper resource chain strategy for WebJar paths
  3. Ensuring static resource locations are properly set

The changes will:

  • Enable proper resolution of WebJar resources
  • Fix the 404 errors when accessing Bootstrap resources
  • Improve resource caching through the resource chain strategy

Testing:

  1. Build the application with mvn clean package -Pcss
  2. Verify Bootstrap resources are accessible at /webjars/bootstrap/5.2.3/css/bootstrap.min.css

Note: The css profile should be activated during build to ensure proper resource unpacking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant