SpringBoot抛出ContextPath must start with xx and not end with xx异常 asing1elife | 2018-04-17 | java , springboot , error 版权声明:本文首发 http://asing1elife.com ,转发请注明出处,讲文明懂礼貌! 该异常属于项目配置的根路径出错 解决问题的办法 在 application.yml 中将 server.servlet.context-path 设置的路径前加一个 / 123server: servlet: context-path: /api