解决 java.lang.IllegalArgumentException: Repository interface must not be null on initialization!
来源:互联网 发布:mac搜狐视频怎么缓存 编辑:程序博客网 时间:2024/05/21 09:01
报错:Caused by: java.lang.IllegalArgumentException: Repository interface must not be null on initialization!
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userRepository': FactoryBean threw exception on object creation; nested exception is java.lang.IllegalArgumentException: Repository interface must not be null on initialization!
在我们的项目中是 springBoot 、dubbo 、jpa 整合的。
原因和解决:
如下图中红框中位置 ,自动建表设置最初是 create , 后来我改为了 update,但事实上只有数据库为空库的时候才用建表。
第一次建表成功后 ,就应该改为 none 。
改为 none 之后就能正常启动工程了。
springBoot 的配置文件中关于数据库的配置:
阅读全文
1 0
- 解决 java.lang.IllegalArgumentException: Repository interface must not be null on initialization!
- java.lang.IllegalArgumentException: 'name' must not be null
- Caused by: java.lang.IllegalArgumentException: Original must not be null
- java.lang.IllegalArgumentException: FacesContext must not be null 错误分析及解决
- 解决java.lang.NullPointerException: View must not be null!
- [异常整理]java.lang.IllegalArgumentException: Attribute value must not be null
- IllegalArgumentException:Bean object must not be null
- IllegalArgumentException: view must not be null
- java.lang.IllegalArgumentException: Service Intent must be explicit 异常解决
- java.lang.IllegalArgumentException: Host name may not be null
- Caused by: java.lang.IllegalArgumentException: Text may not be null
- java.lang.IllegalArgumentException: Resources cannot be null
- java.lang.IllegalArgumentException: Resources cannot be null
- java.lang.IllegalArgumentException: Resources cannot be null.
- java.lang.IllegalArgumentException: Resources cannot be null
- java.lang.IllegalArgumentException: Resources cannot be null.
- java.lang.IllegalArgumentException: localizableString cannot be null
- java.lang.IllegalArgumentException: Resources cannot be null.
- 数据结构实验之查找六:顺序查找
- PHP笔记
- 数据结构实验之查找五:平方之哈希表
- Springboot整合集成ehcache3
- typedef的使用
- 解决 java.lang.IllegalArgumentException: Repository interface must not be null on initialization!
- 教你用Python爬虫股票评论,简单分析股民用户情绪
- 飞利浦公司音频指纹识别算法解析
- JAVA实例学习一为什么要用回调
- Hello World
- mask rcnn模型踩坑指南 tusimple mx-maskrcnn
- enter 回车提交form表单
- 遮罩层注意事项
- cent0S 7 安装 cdh5.13 笔记之二: 安装java,zookeeper,kafka