0
点赞
收藏
分享

微信扫一扫

报错问题 Field userMapper in com.ddd.service.impl.HBaseUserImpl required a bean of type #yyds干货盘点#

书坊尚 2022-02-10 阅读 49
***************************
APPLICATION FAILED TO START
***************************

Description:

Field userMapper in com.ddd.service.impl.HBaseUserImpl required a bean of type 'com.ddd.mapper.hbase.UserMapper' that could not be found.

The injection point has the following annotations:
    - @org.springframework.beans.factory.annotation.Autowired(required=true)

Action:

Consider defining a bean of type 'com.ddd.mapper.hbase.UserMapper' in your configuration.

MapperScan加入进去

@SpringBootApplication
@MapperScan(value = "com.ddd.mapper.hbase")
@MapperScan(value = "com.ddd.mapper.mysql")
public class DApplication {
    public static void main(String[] args) {
        SpringApplication.run(DApplication.class, args);
    }
}
举报

相关推荐

0 条评论