I have a really strange issue that I can't quite f...
# spring
s
I have a really strange issue that I can't quite figure out. I've upgraded to Spring Boot 3 in one of my projects and after this it seems
@GetMapping
is working as usual but something has changed with
@PostMapping
? It correctly maps the
@GetMapping
methods but debug logs this for my
@PostMappings
:
Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], classpath [resources/], classpath [static/], classpath [public/], ServletContext [/]]
Any ideas what I can do to fix this?
1
The resulting issue to the caller is:
Copy code
{"type":"about:blank","title":"Not Found","status":404,"detail":"No static resource...}
Nvm, I found the issue 🙈
As of this Spring Framework change, "GET /some/greeting/" doesn't match anymore by default and will result in an HTTP 404 error.
I.e. trailing slash
327 Views