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