出现如下报错的原因是,没有在方法入口GuyueDemoApplication添加@MapperScan(开启包扫描)注解,添加该注解即可。
Consider defining a bean of type ‘com.luyao.guyue_demo.dao.UserDAO‘ in your configuration.
与本文相关的文章
- Consider defining a bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs‘ ...
- Consider defining a bean of type ‘com.ruralfuture.common.utils.QrCodeUtils‘ in your configuration.
- 使用 @Value 注入配置的时候报错 Consider defining a bean of type ‘java.lang.String‘ in your configuration
- Consider defining a bean of type ‘java.lang.String‘
- SpringCloud Alibaba Gateway出现Consider defining a bean of type ‘org.springframework.http.codec.Server
- SpringBoot启动微服务报错Consider defining a bean of type ‘org.springframework.data.redis.core.RedisTemplate
- Consider defining a bean of type ‘org.springframework.cloud.gateway.filter.factory.SpringCloudCircui
- 引用feignClient对象项目启动异常-Consider defining a bean of type ‘com.xxx.service.xxxRemote‘ in your configura
- 报错Consider defining a bean of type ‘com.xxx.service.Service‘ in your configuration.
- SpringBoot自动注入出现Consider defining a bean of type ‘xxx‘ in your configuration问题解决方案
- Consider defining a bean of type ‘**.Mapper‘ in your configuration
- Consider defining a bean of type ‘com.luyao.guyue_demo.dao.UserDAO‘ in your configuration.
- 关于mongodb配置多数据源及Consider defining a bean of type ‘XXXRepository‘ in your configuration.
- SpringBoot启动报循环依赖错误This is often the result of over-eager type matching - consider using
- Consider defining a bean of type ‘com.example.memberManagementSystem.interceptor.LoginInterceptor‘ i
- Shiro报错Consider defining a bean named ‘authenticator‘ in your configuration.
- Action: Consider defining a bean of type ‘entity.IdWorker‘ in your configuration.
- Spring Boot:Consider defining a bean of type ‘*.*.*‘ in your configuration解决方案
- Consider defining a bean of type ‘xx.xx.xx.xxService‘ in your configuratio
- Action:Consider defining a bean of type ‘AdminPunishService‘ in your configuration. 解决办法
评论列表(0)
- 暂无评论