报错:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'xxxServiceImpl': Unsatisfied dependency expressed through field 'cephClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cephClient': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Secret key cannot be null.
原因:无法注入
org.springframework.beans.factory.UnsatisfiedDependencyException是Spring中的一个异常,它通常表示在依赖注入过程中出现了问题,无法满足依赖关系。
解决办法:
配置有问题,配置有误,仔细检查配置
工作中:在apollo配置中心,有该对象的sk配置未写入。