spring boot启动时异常(Unable to start embedded Tomcat servlet container)

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的提示问题,总感觉不准确啊。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值