【发布时间】:2016-07-21 03:22:13
【问题描述】:
我尝试使用 Spring 框架构建应用程序,但出现以下错误,不知道为什么。 每当我尝试运行应用程序时,都会出现以下错误。由于空间原因,我确实在 C 盘中设置了我的 Maven,在 D 盘中设置了我的应用程序。这会是个问题吗?
是什么导致了错误,我应该如何解决?
ERROR 10904 --- [main] o.a.coyote.http11.Http11NioProtocol : 无法启动与 ProtocolHandler ["http-nio-8080"] 关联的端点
ERROR 10904 --- [main] o.apache.catalina.core.StandardService : 无法启动连接器 [Connector[HTTP/1.1-8080]]
ERROR 10904 --- [main] os.boot.SpringApplication : 应用程序启动失败
INFO 10904 --- [main] .b.l.ClasspathLoggingApplicationListener:应用程序无法使用类路径启动:[file:/D:/GITHUB/webappaws/target/classes/, file:/C: /Users/codeLearner/.m2/repository/org/springframework/boot/spring-boot-starter-thymeleaf/1.3.6.RELEASE/spring-boot-starter-thymeleaf-1.3.6.RELEASE.jar,文件:/C :/Users/codeLearner/.m2/repository/org/springframework/boot/spring-boot-starter/1.3.6.RELEASE/spring-boot-starter-1.3.6.RELEASE.jar,文件:/C:/Users /codeLearner/.m2/repository/org/springframework/boot/spring-boot/1.3.6.RELEASE/spring-boot-1.3.6.RELEASE.jar,文件:/C:/Users/codeLearner/.m2/repository /org/springframework/boot/spring-boot-autoconfigure/1.3.6.RELEASE/spring-boot-autoconfigure-1.3.6.RELEASE.jar,文件:/C:/Users/codeLearner/.m2/repository/org/ springframework/boot/spring-boot-starter-logging/1.3.6.RELEASE/spring-boot-starter-logging-1.3.6.RELEASE.jar,文件:/C:/Users/codeLearner/.m2/repository/ch /qos/logback/logback-classic/1.1.7/logba ck-classic-1.1.7.jar,文件:/C:/Users/codeLearner/.m2/repository/ch/qos/logback/logback-core/1.1.7/logback-core-1.1.7.jar,. ..
【问题讨论】:
-
当您在浏览器中打开localhost:8080 时会看到什么?
-
您的日志中应该有异常消息和堆栈跟踪。我们需要先看到这一点。