org.springframework.boot.context.embedded.EmbeddedServletContainerException: **Unable to start embedded Tomcat servlet container**
at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:165) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:293) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.2.5.RELEASE.jar:4.2.5.RELEASE]
at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:766) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.boot.SpringApplication.createAndRefreshContext(SpringApplication.java:361) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
**Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at** org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:159) ~[spring-boot-1.3.4.RELEASE.jar:1.3.4.RELEASE]
... 8 common frames omitted
2018-09-26 18:15:05.448 - INFO 14780 [app - gcpa-8090] [rid - gcpa-8090-18092618142886912203572224] --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath:
[file:/E:/Program%20Files/Java/jre/lib/charsets.jar,
file:/E:/Program%20Files/Java/jre/lib/deploy.jar,
file:/E:/Program%20Files/Java/jre/lib/ext/access-bridge-32.jar, file:/E:/Program%20Files/Java/jre/lib/ext/cldrdata.jar,
file:/E:/Program%20Files/Java/jre/lib/ext/dnsns.jar, file:/E:/Program%20Files/Java/jre/lib/ext/jaccess.jar,
file:/E:/Program%20Files/Java/jre/lib/ext/jfxrt.jar, file:/E:/Program%20Files/Java/jre/lib/ext/localedata.jar,
file:/E:/Program%20Files/Java/jre/lib/ext/nashorn.jar, file:/E:/Program%20Files/Java/jre/lib/ext/sunec.jar, file:/E:/Program%20Files/Java/jre/lib/ext/sunjce_provider.jar, file:/E:/Program%20Files/Java/jre/lib/ext/sunmscapi.jar..........
报错信息就是上边现实的,百度了很多,他们基本都是有错误,而这个是没有代码错误的。突然看到有人说可能是端口占用,试了一下,果然是端口占用。不知道是公司封装的框架问题还是spring boot的提示问题,总感觉不准确啊。