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\'
With spring-boot 2.x you can configure in application.properties:
spring.mvc.servlet.path=/api