版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/ZYC88888/article/details/87690300
新的项目已经将springboot升级为2.0版本了
刚开始没有配置server.contextpath,默认的“/”,然后今天放到自己的服务器上,所以就要规范名称。
结果,失败了,无论我怎么配置,总是在启动后日志打印说 :path:"" 、
正确方式:
server.servlet.context-path:"/url"