I am using Spring Boot to create a web app, and I am not sure how to change the URL from localhost:8080 to something like localhost:8080/myWebApp.
localhost:8080
localhost:8080/myWebApp
The server.contextPath or server.context-path works if
in pom.xml
Add following dependencies
org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-tomcat provided
In eclipse, right click on project --> Run as --> Spring Boot App.