SpringBoot 2.0.0.RELEASE版本后更新
yml写法:
1
2
3server:
servlet:
context-path: /exampleproperties写法:
1
server.servlet.context-path=/example
- 本文作者: 試毅-思伟
- 本文链接: https://joeybling.github.io/2018/08/17/SpringBoot配置文件中context-path不起作用/
- 版权声明: 本博客所有文章除特别声明外,均采用 Apache License 2.0 许可协议。转载请注明出处!

