SpringBoot错误问题
sim-uu
这个作者很懒,什么都没留下…
展开
-
Spring ioc注入为null
1. 将Bean交给spring管理不可以手动实例化,否则会导致注入为null 2. 加载时机的问题, 如listen filter 加载时机比spring ioc要早,所以在里面注入的时候,spring还没有给Bean初始化,会导致为null 必须在使用的时候赋值 错误示例 ...原创 2020-07-22 10:06:11 · 446 阅读 · 0 评论 -
org.springframework.beans.factory.BeanCreationException
错误信息 Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'xxx: FactoryBean thre w exception on object creation; nested exception is java.lang.IllegalState...原创 2019-11-25 14:07:52 · 522 阅读 · 0 评论