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\'
For spring boot framework version 2.0.4.RELEASE+. Add this line to application.properties
2.0.4.RELEASE+
application.properties
server.servlet.context-path=/api