I have a Spring Boot application which I will deploy as a .war file in existing Tomcat and Undertow(Wildfly) containers. How can I configure the context path from within the application?
I know I can use the .war name directly, but I dont want to do that since the .war name contains version information etc.