idea springboot项目启动要求加bean
分类:
文章
•
2024-06-06 15:03:34
启动报错 XXXcontroller required a bean of type ‘XXXX.interface’ that could not be found.
- 解决办法,在启动类上扫描包。
- @SpringBootApplication(exclude = { HibernateJpaAutoConfiguration.class }, scanBasePackages = “com.wufj”)
