wanzhitao18 2021-02-01 16:12 采纳率: 50%
浏览 48
已采纳

springBoot启动错误?

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'esSearchUtil': Unsatisfied dependency expres through field 'client'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'client' defined in class path resource [com/miju/common/configuration/EsConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.elasticsearch.client.RestHighLevelClient]: Factory method 'client' threw exception; nested exception is java.lang.NullPointerException
  • 写回答

6条回答 默认 最新

  • KiterCher 2021-02-01 16:26
    关注

    你这报错已经很明显了呀。EsConfig line:19  这行报空指针,你断点看看哪个值是空的,然后做个判断就行了呀

    EsConfig.client(EsConfig.java:19)
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?