我正在跟踪站点here和here,以使用Spring Cloud Sleuth,但是该应用程序退出时没有任何警告/错误。
我已将depency添加到build.gradle:
compile ('org.springframework.cloud:spring-cloud-starter-sleuth:1.0.0.RELEASE')
我尝试排除here中提到的公共记录:
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]调试org.jboss.logging-记录 提供者:org.jboss.logging.Log4j2LoggerProvider 11:57:31.956 [background-preinit] INFO org.hibernate.validator.internal.util.Version-HV000001:休眠 验证程序6.0.11.Final 11:57:31.975 [background-preinit]调试 org.hibernate.validator.internal.engine.resolver.TraversableResolvers -在包含“ getPersistenceUtil”的类路径上找到javax.persistence.Persistence。假设有JPA 2环境。尝试去 实例化JPA感知的TraversableResolver 11:57:31.976 [background-preinit]调试 org.hibernate.validator.internal.engine.resolver.TraversableResolvers -实例化的JPA感知的org.hibernate.validator.internal.engine.resolver.JPATraversableResolver类型的TraversableResolver。 11:57:31.980 [background-preinit]调试 org.hibernate.validator.internal.xml.config.ValidationXmlParser- 尝试为基于XML的Validator加载META-INF / validation.xml 组态。 11:57:31.981 [background-preinit]调试 org.hibernate.validator.internal.xml.config.ResourceLoaderHelper- 尝试通过TCCL 11:57:31.982加载META-INF / validation.xml [background-preinit]调试 org.hibernate.validator.internal.xml.config.ResourceLoaderHelper- 尝试通过Hibernate Validator的类加载META-INF / validation.xml 加载程序11:57:31.982 [background-preinit]调试 org.hibernate.validator.internal.xml.config.ValidationXmlParser-否 找到META-INF / validation.xml。使用基于注释的配置 只要。 11:57:32.145 [background-preinit]调试 org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator -通过原始TCCL 11:57:32.152 [background-preinit] DEBUG加载了表达式工厂 org.hibernate.validator.internal.engine.ValidatorFactoryImpl- HV000234:使用 org.hibernate.validator.messageinterpolation.ResourceBundleMessageInterpolator 作为ValidatorFactory范围的消息插值器。 11:57:32.152 [background-preinit]调试 org.hibernate.validator.internal.engine.ValidatorFactoryImpl- HV000234:使用 org.hibernate.validator.internal.engine.resolver.JPATraversableResolver 作为ValidatorFactory范围的可遍历解析器。 11:57:32.152 [background-preinit]调试 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]调试 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
答案 0 :(得分:0)
您正在使用古老版本的Sleuth。你能用最新的吗?转到start.spring.io并使用sleuth生成spring boot项目。这样一来,您无需自己配置任何东西。