/** 不能将这个bean和sqlSessionFactory的bean放在一个类中,否则会导致datasource生成失败 */
  @Bean
  public MapperScannerConfigurer mapperScannerConfigurer() {

    MapperScannerConfigurer mapperScannerConfigurer = new MapperScannerConfigurer();
    mapperScannerConfigurer.setBasePackage("com.creditease.job.dao");

    return mapperScannerConfigurer;
  }
Beispiel #2
0
 @Bean
 public MapperScannerConfigurer getMapperScannerConfigurer() {
   MapperScannerConfigurer scanConf = new MapperScannerConfigurer();
   scanConf.setBasePackage("com.xb.persistent.mapper");
   return scanConf;
 }