I\'m trying to to mix mvc and rest in a single spring boot project.
I want to set base path for all rest controllers (eg. example.com/api) in a single place (I don\'
You can create a base class with @RequestMapping("rest") annotations and extend all you other classes with this base class.
@RequestMapping("rest")
@RequestMapping("rest") public abstract class BaseController {}
Now all classes that extend this base class will be accessible at rest/**.
rest/**