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

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

相关文章:

  • 2022-12-23
  • 2021-07-23
  • 2021-10-18
  • 2021-06-15
  • 2021-05-30
  • 2021-08-08
  • 2021-12-14
  • 2021-06-21
猜你喜欢
  • 2021-12-24
  • 2021-04-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-07
  • 2021-03-31
  • 2022-12-23
相关资源
相似解决方案