Have spring boot 1.3.x application with server.context-path=/mypath defined in application.properties and also redirecting requests as defined in Java Spring Boot: How to map my app root (“/”) to index.html?
Requests with url example.com/mypath map to example.com/mypath/index.html using viewControllerRegistry.addViewController("/").setViewName("forward:/index.html")
Also need requests with url example.com/ to be automatically redirected to example.com/mypath
Is this possible with a server.context-path=/mypath defined? Would prefer to have Spring Boot do the redirect rather than having to introduce nginx or apache httpd, but don't see how to make this happen. Investigated removing the context-path, but it would result in too many changes to a well established large code base.