SpringBoot报错HHH000206: hibernate.properties not found

Model层的Key类没有添加注解。
导致bean无法注入,加一下就行了。和表对应就写@Entity,不对应就写@Component。

本来写着@Entity的,但是就是不对,就改成了@Component,就对了,还是想不通

posted @ 2018-06-17 22:06  SkyeAngel  阅读(5533)  评论(0编辑  收藏  举报