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

作者: 試毅_思伟 | 来源:发表于2018-08-17 15:29 被阅读1次

    SpringBoot 2.0.0.RELEASE版本后更新

    • yml写法:
    server:
        servlet:
            context-path: /example
    
    • properties写法:
    server.servlet.context-path=/example
    

    相关文章

      网友评论

      本文标题:SpringBoot配置文件中context-path不起作用

      本文链接:https://www.haomeiwen.com/subject/vgftiftx.html