SpringBoot启动报错IllegalArgumentException: ContextPath must start with ‘/‘ and not end with ‘/‘

在这里插入图片描述
2020-11-05 14:42:21.394 ERROR 14220 — [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘tomcatServletWebServerFactory’ defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/ServletWebServerFactoryConfiguration$EmbeddedTomcat.class]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: ContextPath must start with ‘/’ and not end with ‘/’

错的地方为:
在这里插入图片描述
修改为:
在这里插入图片描述