Skip to content

WebJars Bootstrap Resource Not Found 404-created-by-agentic #70

@shaykeren

Description

@shaykeren

Issue Description

The application is experiencing 404 errors when trying to access Bootstrap WebJar resources through the /webjars/** endpoint.

Root Cause

  1. Missing explicit WebJar resource configuration in Spring Boot
  2. Resource chain strategy not properly configured for WebJar paths
  3. Static resource locations not explicitly defined

Solution

A PR has been created (#69) that adds proper WebJar resource configuration:

  1. Adds explicit WebJar resource mapping in application.yml
  2. Configures resource chain strategy for proper caching
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfrontend

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions