Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

报错信息:

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

原因分析:

1、检查自己的pom是否加错文件,发生冲突

这是我自己项目加错了报错了。 

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

2、或者是自己的文件没有加入到编译文件里面,maven clean一下,然后重新启动即可。

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

 3、检查是否在启动类上加入了注释@SpringBootApplication

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerExcepti

 

本文来自网络,不代表协通编程立场,如若转载,请注明出处:https://www.net2asp.com/ec03aa1abe.html