
SpringBoot 工程启动报错Consider defining a bean of type
一、问题描述
启动SpringBoot工程报错
Action: Consider defining a bean of type 'com.xxx.xxx.dao.UserEntityMapper' in your configuration. 二、问题解决1、首先检查有没有写错注解 2、添加注解
@Configuration @EnableAutoConfiguration @ComponentScan(basePackages = { "com.***" }) @SpringBootApplication @MapperScan("com.****") public class AoeSpringBootApplication { public static void main(String[] args) { SpringApplication.run(AoeSpringBootApplication.class, args); } }👁️ 阅读量:0
© 版权声明:本文《SpringBoot 工程启动报错Consider defining a bean of type》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686552139a289830.html。