【问题标题】:Spring framework ERROR 10904 [closed]Spring框架错误10904 [关闭]
【发布时间】: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 时会看到什么?
  • 您的日志中应该有异常消息和堆栈跟踪。我们需要先看到这一点。

标签: java windows spring maven


【解决方案1】:

已解决

我在启动应用程序时所做的不是重新启动它,而是运行它,这就是导致问题的原因(我认为)

当我打开 localhost:8080 时,它会显示它应该显示的内容。

我正在学习,这确实是愚蠢的错误,我会从每一个新的反馈中学习..虽然不知道为什么我被否决了......

谢谢卢克和吉姆!

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-10-01
    • 1970-01-01
    • 2014-01-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-06-20
    相关资源
    最近更新 更多