SpringBoot 2.0.0.RELEASE版本后更新
- yml写法:
server:
servlet:
context-path: /example
- properties写法:
server.servlet.context-path=/example
server:
servlet:
context-path: /example
server.servlet.context-path=/example
相关文章: