Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/spring-boot/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
spring引导应用程序不会在STS中启动;但在maven中构建良好_Maven_Spring Boot - Fatal编程技术网

spring引导应用程序不会在STS中启动;但在maven中构建良好

spring引导应用程序不会在STS中启动;但在maven中构建良好,maven,spring-boot,Maven,Spring Boot,我不熟悉弹簧靴 我正在尝试运行一个非常基本的spring启动应用程序“Hello World” 当我导航到pom.xml文件并运行mvn clean install时,它会生成 很好,创建jar文件 但是,当我尝试在Eclipse中运行它时,它挂起在以下行: Apr 22, 2017 11:54:40 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat Apr 22, 20

我不熟悉弹簧靴

我正在尝试运行一个非常基本的spring启动应用程序“Hello World”

当我导航到
pom.xml
文件并运行
mvn clean install
时,它会生成 很好,创建jar文件

但是,当我尝试在Eclipse中运行它时,它挂起在以下行:

Apr 22, 2017 11:54:40 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Tomcat
Apr 22, 2017 11:54:40 PM org.apache.catalina.core.StandardEngine  startInternal INFO: Starting Servlet Engine: Apache Tomcat/8.5.14
Apr 22, 2017 11:54:40 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring embedded WebApplicationContext
我对SLF4J有很多问题,因为它没有正确编译, 我排除了它对logback classic的依赖

<exclusion>
  <groupId>ch.qos.logback</groupId>
  <artifactId>logback-classic</artifactId>
</exclusion>

回写
回归经典

那么,应用程序真的没有启动(是否有要检查的端点)还是只是没有正确记录?您需要排除的事实表明您在
pom.xml
中弄乱了依赖关系。谢谢Sander&Deinum。我尝试在STS中创建一个非常基本的spring boot应用程序。日食 项目马文项目 (确保选择了maven-achetype quickstart 1,1)-->创建了一个新的springbootProj。添加了两个依赖项:org.springframework.boot-spring-boot-starter-parent 1.5.3.RELEASE org.springframework.boot-spring-boot-starter-web它看起来像是一个依赖项问题。我一直收到以下错误:SLF4J:未能加载类“org.SLF4J.impl.StaticLoggerBinder”。SLF4J:默认为无操作(NOP)记录器实现SLF4J:有关更多详细信息,请参阅。我查看了sugegsted修复程序,建议为4个jar slf4j-nop.jar slf4j-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中的任何一个添加另一个依赖项。logback-classic.jar的版本正在产生问题。现在应用程序似乎启动正确。那么,应用程序是否真的没有启动(是否有要检查的端点)或者只是日志记录不正确?您需要排除的事实表明您在
pom.xml
中弄乱了依赖关系。谢谢Sander&Deinum。我尝试在STS中创建一个非常基本的spring boot应用程序。日食 项目马文项目 (确保选择了maven-achetype quickstart 1,1)-->创建了一个新的springbootProj。添加了两个依赖项:org.springframework.boot-spring-boot-starter-parent 1.5.3.RELEASE org.springframework.boot-spring-boot-starter-web它看起来像是一个依赖项问题。我一直收到以下错误:SLF4J:未能加载类“org.SLF4J.impl.StaticLoggerBinder”。SLF4J:默认为无操作(NOP)记录器实现SLF4J:有关更多详细信息,请参阅。我查看了sugegsted修复程序,建议为4个jar slf4j-nop.jar slf4j-simple.jar、slf4j-log4j12.jar、slf4j-jdk14.jar或logback-classic.jar中的任何一个添加另一个依赖项。logback-classic.jar的版本正在产生问题。现在应用程序似乎启动正确。