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 '/'
根据报错,发现是上下文路径缺少了“/”这个小细节一定要注意
版权声明:本文为v790873原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。