我今天一个程序报错依赖异常。错误信息如下 Caused by:UnsatisfiedDependencyException: Error creating bean with name 'extensionServiceImpl': Unsatisfied dependency expressed through field 'zkService'; nested exception is BeanCreationException: Error creating bean with name 'zkService' defined in URL [xxx.jar!/xxx/ZkService.class]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.dbapp.baas.monitor.infrastructure.ZkService]: Constructor threw exception; nested exception is java.lang.NullPointerException
先说一下我的代码结构
原本的代码结构如下。
版权说明 : 本文为转载文章, 版权归原作者所有 版权申明
原文链接 : https://blog.csdn.net/qq_21383435/article/details/123261182
内容来源于网络,如有侵权,请联系作者删除!