change the servlet path in spring boot code example Example: context path spring boot server.servlet.context-path=/baeldung