-
Notifications
You must be signed in to change notification settings - Fork 562
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
Move of WebMvc and HalExplorer causes Spring Boot to fail to apply customizations #2442
Comments
@knelson59406 thanks very much for the detailed report and sample. I've reproduced the problem you've described. However, I did try with Spring Boot |
@odrotbohm it seems bed7feb broke something, see above. |
That's a good catch! Upon deeper inspection of the original ticket, I think I found a better, more appropriate fix in Spring Modulith, as an issue in its proxy creation for the observability support is causing the classloader mismatch in the first place. |
I recently upgraded my Spring Boot application from version 3.4.0 to 3.4.1 and encountered an issue with Spring Data REST.
In version 3.4.0 (and all previous 3.x versions), the following configuration worked as expected:
With this property set, I could successfully access my REST API resources via:
http://localhost:8080/api/todos
However, after upgrading to Spring Boot 3.4.1, this configuration no longer works. Attempting to access the API endpoints with the configuration
spring.data.rest.base-path
results in a 404 Not Found error. I suspect there might be a conflict with the Spring Boot DevTools dependency, as removing it resolves the issue.Environment
How To Reproduce
I have a reproducible example at this repo
mvn clean spring-boot:run
curl -v http://localhost:8080/api/todos
You will receive a 404 Not Found error.
Observed Behavior
Accessing the API endpoint results in a Whitelabel Error Page:
Expected Behavior:
I expected a successful response with 200 status code and following output:
Possible Conflict with DevTools:
After troubleshooting, I discovered that removing the Spring Boot DevTools dependency resolves the issue. For example:
Once the DevTools dependency is removed, the application runs successfully. You are able to access the endpoint http://localhost:8080/api/todos and it returns a 200 response as expected along with the following content.
What I’ve Tried
spring.data.rest.base-path
property but couldn’t find anything relevant.Questions
spring.data.rest.base-path
property changed in Spring Boot 3.4.1?Any guidance or workarounds would be greatly appreciated!
The text was updated successfully, but these errors were encountered: