I have a spring-boot application with vaadin8 and want to change the management base-path to "/" but also I want to keep server.context-path to /myApp .
If I change management base-path to "/" , all the endpoints will still start with myApp/{id} for instance: myApp/health, myApp/env and so on, and that make sense because at the end the root path of my app is /myApp .
This is how I have configured my application.yml
server.context-path: /myApp management.endpoint.web.base-path: /
But, how can I achieve this? how can I have my management endpoints in this path "/" and my app context path in this one: "/myAp"
server.servlet-path: /blah
这会将Spring
调度程序servlet映射到/blah
,以便可以通过/myApp/blah/{id}
访问您的API实现(如果使用了Spring MVC Rest
)。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.