簡體   English   中英

Spring Cloud Sleuth 退出時沒有錯誤/警告

[英]Spring Cloud Sleuth exited without errors/warnings

我正在關注網站herehere ,以使用Spring Cloud Sleuth,但應用程序退出時沒有任何警告/錯誤。

我已將依賴項添加到 build.gradle:

compile ('org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.RELEASE')

我試圖排除這里提到的公共日志記錄:

compile ('org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.RELEASE')
{ 
     exclude module: 'commons.logging'
     exclude group: 'commons.logging'
}

但仍然沒有運氣。 這是控制台輸出:

11:57:31.952 [background-preinit] DEBUG org.jboss.logging - 日志提供程序:org.jboss.logging.Log4j2LoggerProvider 11:57:31.956 [background-preinit] INFO org.hibernate.validator.internal.util.Version - HV000001:Hibernate Validator 6.0.11.Final 11:57:31.975 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - 在包含 'getPersist 的類路徑上找到 javax.persistence.Persistence 假設 JPA 2 環境。 嘗試實例化 JPA 感知 TraversableResolver 11:57:31.976 [background-preinit] DEBUG org.hibernate.validator.internal.engine.resolver.TraversableResolvers - 實例化 JPA 感知 TraversableResolver 類型 org.hibernate.validator.internal.engine.resolvableResolver.JPA . 11:57:31.980 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ValidationXmlParser - 嘗試為基於 XML 的驗證器配置加載 META-INF/validation.xml。 11:57:31.981 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config.ResourceLoaderHelper - 嘗試通過 TCCL 加載 META-INF/validation.xml 11:57:31.982 [background-preinit] DEBUG org。 hibernate.validator.internal.xml.config.ResourceLoaderHelper - 嘗試通過 Hibernate Validator 的類加載器加載 META-INF/validation.xml 11:57:31.982 [background-preinit] DEBUG org.hibernate.validator.internal.xml.config。 ValidationXmlParser - 未找到 META-INF/validation.xml。 僅使用基於注釋的配置。 11:57:32.145 [background-preinit] DEBUG org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator - 通過原始 TCCL 加載表達式工廠 11:57:32.152 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryI HV000234:使用 org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator 作為 ValidatorFactory 范圍的消息內插器。 11:57:32.152 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234:使用 org.hibernate.validator.internal.engine.resolver.JPATraversableResolver 作為 ValidatorFactory 范圍的可遍歷解析器。 11:57:32.152 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234:使用 org.hibernate.validator.internal.util.ExecutableParameterNameProvider 作為 ValidatorFactory 范圍的參數名稱提供程序。 11:57:32.152 [background-preinit] 調試 org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234:使用 org.hibernate.validator.internal.engine.DefaultClockProvider 作為 ValidatorFactory 范圍的時鍾提供程序。 11:57:32.152 [background-preinit] DEBUG org.hibernate.validator.internal.engine.ValidatorFactoryImpl - HV000234:使用 org.hibernate.validator.internal.engine.scripting.DefaultScriptEvaluatorFactory 作為 ValidatorFactory 范圍的腳本評估器工廠。

進程以退出代碼 1 結束

更新

我已將依賴項更新為

compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '2.1.0.RELEASE'

但是應用程序仍然無法啟動,這里是日志:

2019-02-13 15:45:25.001  INFO [-,,,] 20148 --- [           main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@20deea7f: startup date [Wed Feb 13 15:45:24 HKT 2019]; root of context hierarchy
2019-02-13 15:45:25.345  INFO [-,,,] 20148 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$adc7b00a] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.0.4.RELEASE)

2019-02-13 15:45:25.551  INFO [-,,,] 20148 --- [           main] c.s.m.ABCServiceApplication       : The following profiles are active: dev

Process finished with exit code 1

您正在使用古老版本的 Sleuth。 請問可以用最新的嗎? 轉到 start.spring.io 並使用 sleuth 生成一個 spring boot 項目。 這樣你就不必自己配置任何東西。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM