Configure context path on Spring Boot application

Add context path to Spring Boot application

In order to specify a context path to our spring boot application we need to change the context-path property in the configuration file.

1 Spring boot 2

server:
  servlet:
    context-path: /yamicode

2 Old version of Spring

server:
  contextPath: /builder