我想更改 spring boot 2 的上下文路径,例如我想在 http://localhost:8080/test/ 上提供服务
我的意思是它不适用于 spring-boot-starter-webflux:2.0.0.RELEASE
它只适用于 spring-boot-starter-web::2.0.0.RELEASE
我试过了
server.servlet.context-path=/test
但是我没有发生任何事情仍然在网址 http://localhost:8080/ 上提供服务
最佳答案
如果您使用 servlet API,则该属性现在称为
server.servlet.context-path=/myapp
关于spring - 更改 spring boot 2.0 上下文路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49192878/