-
Couldn't load subscription status.
- Fork 41.6k
Description
There doesn't seem to be anyway, short of explicitly prefixing each individual @RequestMapping with a default URI like @RequestMapping(path="**/api**/controller1" at the top of the @RestController class, where **/api** is the default. I'm trying to have a clear separation in URL paths between normal application requests and web service requests, allowing me to provide additional security specific to web services.
I have an ongoing StackOverflow post, with no meaningful solution to-date and would like to suggest an enhancement to allow a default URI prefix to be supported somewhere in the Spring Boot application.properties configuration.
The result would be, using the example above, that my request mapping would be defined as:
@RequestMapping(path="controller1") The resulting URL would resolve to
> /<root_context>/api/controller1