运行java时,报:
信息: Initializing Spring embedded WebApplicationContext.然后不动了。
往上看:
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
四月 22, 2024 7:04:43 下午 org.apache.catalina.core.StandardService startInternal
信息: Starting service [Tomcat]
四月 22, 2024 7:04:43 下午 org.apache.catalina.core.StandardEngine startInternal
信息: Starting Servlet engine: [Apache Tomcat/9.0.19]
四月 22, 2024 7:04:43 下午 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring embedded WebApplicationContext
结合:一直卡在 Initializing Spring embedded WebApplicationContext-CSDN博客
决定将spring-boot-starter-logging的exclusion拿掉
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
</dependency>
重新maven install后还是一样,决定清理缓存再重启,还是一样。
在pom文件里加入下面内容,进行maven更新
<dependency></dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j</artifactId>
<version>1.3.8.RELEASE</version>
后可以了。
版权归原作者 weixin_43202919 所有, 如有侵权,请联系我们删除。