SpringBoot配置文件中context-path不起作用

SpringBoot 2.0.0.RELEASE版本后更新

  • yml写法:
server:
    servlet:
        context-path: /example
  • properties写法:
server.servlet.context-path=/example
posted @ 2018-08-17 15:29  試毅-思伟  阅读(3011)  评论(0编辑  收藏  举报