Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

问题原因:通过springboot的启动类来启动springboot项目时,报错。但是通过maven packeage打包后,再启动没有问题。

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'applicationRunnerImpl': Unsatisfied dependency expressed through field 'appXSession'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'appXSession' defined in class path resource [com/bk/config/AppXSessionConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.bk.clientx.AppXSession]: Factory method 'appXSession' threw exception; nested exception is java.lang.NullPointerException 这个报错什么 意思?

解决办法:清理idea缓存

 

posted @ 2024-09-30 09:41  信铁寒胜  阅读(1418)  评论(0)    收藏  举报