There are two ways to set the application context path in the spring boot application. If you are using standalone tomcat server instance, it doesn't allow to use the server.servlet.context-path property. Refer to below URL: Blogs Java/J2EE Spring Framework How to set context path in Spring Boot for Tomcat 1 comment