Skip to content

Conversation

shaykeren
Copy link

Problem

Bootstrap version mismatch between Maven and Gradle build systems was causing 404 errors on /webjars/** endpoint:

  • Maven (pom.xml) used Bootstrap 5.2.3
  • Gradle (build.gradle) used Bootstrap 5.3.2
  • Thymeleaf templates hardcoded Bootstrap 5.2.3 references

When deployed with Gradle, templates requested 5.2.3 but only 5.3.2 was available, causing 404s.

Solution

  • Updated Maven pom.xml to use Bootstrap 5.3.2 (aligned with Gradle)
  • Updated Thymeleaf template to reference Bootstrap 5.3.2 instead of hardcoded 5.2.3

Changes

  1. pom.xml: Updated webjars-bootstrap.version from 5.2.3 to 5.3.2
  2. layout.html: Updated Bootstrap script reference from 5.2.3 to 5.3.2

Fixes

  • Error ID: dfcecee6-5f5e-11f0-a409-0242ac160009
  • Trace ID: 8E857253DC0D03C8A8FC8FC5B5563E02
  • Affected endpoint: HTTP GET /webjars/**

This minimal fix ensures consistent Bootstrap versions across both build systems and resolves the 404 errors.

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