No qualifying bean of type 'xxx.xxx.xxx' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

 

在启动项上加上

@EnableJpaRepositories(basePackages = "com.ssm.xxx")
扫描到指定的包

相关文章:

  • 2021-11-19
  • 2021-08-14
  • 2021-11-11
猜你喜欢
  • 2022-01-07
  • 2021-05-12
  • 2022-01-01
  • 2021-11-30
  • 2021-12-28
相关资源
相似解决方案