SpringBoot应用程序卡在springboot徽标上

ana*_*and 8 jersey spring-boot

我有与jersey框架集成的spring boot应用程序.现在,当我尝试运行该应用程序时,它只是停留在Spring引导徽标,之后没有任何反应.

我也尝试添加-X,但logo后面没有日志.我尝试了很多改变我的pom但结果相同.我无法继续进行,因为我无法找出错误信息.

任何猜测如何调试此问题,我现在无法共享我的代码.

[更新]我以某种方式设法运行应用程序.现在它超越了Sprint Logo

我可以看到应用程序已启动,但我无法看到tomcat启动日志,它只是挂在那里..

使用带有springboot和jersy的tomcat会有问题吗?

Swa*_*aju 7

我也面对这个:

通过在log4j2.xml中添加"console"配置解决了这个问题

 <?xml version="1.0" encoding="UTF-8"?>
 <Configuration status="info" packages="com.citi.area51">
<Appenders>
    <Console name="Console" target="SYSTEM_OUT">
        <PatternLayout pattern="%d{dd/MM/yyyy HH:mm:ss.SSSSSS} [%t] %-5level 
%logger{36} - %msg%n"/>
    </Console>
</Appenders>
<Loggers>
    <Root level="info">
        <AppenderRef ref="Console"/>
        <AppenderRef ref="File"/>
    </Root>
</Loggers>
</Configuration>
Run Code Online (Sandbox Code Playgroud)


Via*_*mov 6

添加以下logback.xml配置后,我也遇到了同样的问题,因为我想限制 apache http 客户端产生的噪音:

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <logger name="org.apache" level="ERROR" />
  <logger name="httpclient" level="ERROR" />
</configuration>
Run Code Online (Sandbox Code Playgroud)

当我添加附加程序和根记录器时,我的应用程序再次开始工作。

  <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
    <encoder>
      <pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
    </encoder>
  </appender>

  <root level="info">
    <appender-ref ref="STDOUT" />
  </root>
Run Code Online (Sandbox Code Playgroud)

因此,如果您遇到此问题,请检查记录器的配置。

希望它能帮助别人!