【springboot错误】 Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransac

在起来的一个项目中,使用原有的配置,进行启动,发现一直有一个错误循环打印,都是fegin类:

  getTypeForFactoryBean:1516] : Bean creation exception on non-lazy FactoryBean type check: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'com.***.opt.modules.remote.UserStatusRemoteService': Unsatisfied dependency expressed through bean property 'targeter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'feignTargeter' defined in class path resource [org/springframework/cloud/netflix/feign/FeignAutoConfiguration$HystrixFeignTargeterConfiguration.class]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.config.internalTransactionAdvisor' defined in class path resource [org/springframework/transaction/annotation/ProxyTransactionManagementConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransactionAttributeSourceAdvisor]: Factory method 'transactionAdvisor' threw exception; nested exception is java.lang.NullPointerException
 

在仔细查看日志之后,发现有一个 properties没有配置,导致自动装配属性失败导致的异常,深层次的原因没有进一步跟踪

【springboot错误】 Failed to instantiate [org.springframework.transaction.interceptor.BeanFactoryTransac_第1张图片

你可能感兴趣的:(java)