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
In Spring Boot 2 the property in e.g. in application.properties is server.servlet.context-path=/myWebApp to set the context path.
application.properties
server.servlet.context-path=/myWebApp
https://docs.spring.io/spring-boot/docs/2.0.1.BUILD-SNAPSHOT/reference/htmlsingle/#_custom_context_path