spring.data.rest.base-path not working #19163
Labels
for: stackoverflow
A question that's better suited to stackoverflow.com
status: invalid
An issue that we don't feel is valid
When I use the application property spring.data.rest.base-path=/api my rest controller is still accessible under the path /.
Version: 2.2.1.RELEASE
Doing the request (wrong path):
Request actually wanted path with rest base-path config:
My application.properties (is at correct place, otherwise db connection wouldn't work, which I had earlier when setting up project)
My build.gradle:
Main:
Rest Controller
I found an older ticket for spring 1.3.5 where this was broken as well: #6250
Does anyone know why this is not working?
For now I have to modify every controller and add this annotation at the beginning:
@RequestMapping("api")
Best regards
The text was updated successfully, but these errors were encountered: