Handle @RequestMapping at package level [SPR-15913] #20467
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
type: enhancement
A general enhancement
Stéphane Daviet opened SPR-15913 and commented
I would like to manage the version of my REST API in the URL, something like v1/my_resource and get all the controllers under a same package exposed under the same version path. I was seeking for an elegant way of doing this without hardly coding the version part in all the controllers (like
@RequestMapping("/v1/myresource")
). I would like to know if applying the@RequestMapping
at the package level (in anpackage-info.java
) is an idea that is worth trying? If yes, I would gladly try to provide a pull request.Affects: 4.3.10
Issue Links:
The text was updated successfully, but these errors were encountered: