MapperFacade自动导入失败

MapperFacade自动导入失败

添加以下代码并且保证项目可以扫描到:

@Configuration
public class OrikaConfig {
    @Bean
    public MapperFactory mapperFactory() {
        return new DefaultMapperFactory.Builder().build();
    }

    @Bean
    public MapperFacade mapperFacade() {
        return mapperFactory().getMapperFacade();
    }
}
posted @ 2019-01-18 15:44  bihang  阅读(959)  评论(0编辑  收藏  举报