2019-08-14 14:36:19.149 ERROR 20280 --- [ main] o.s.boot.SpringApplication :

2019-08-14 14:36:19.149 ERROR 20280 --- [           main] o.s.boot.SpringApplication               : Application startup failed

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

 

 

springboot的yml配置文件中,设置服务名称:以“/”开头

2019-08-14 14:36:19.149 ERROR 20280 --- [ main] o.s.boot.SpringApplication :_第1张图片

你可能感兴趣的:(2019-08-14 14:36:19.149 ERROR 20280 --- [ main] o.s.boot.SpringApplication :)