org.mybatis.spring.annotation.MapperScan.<init>()方法的使用及代码示例

x33g5p2x  于2022-01-24 转载在 其他  
字(7.1k)|赞(0)|评价(0)|浏览(186)

本文整理了Java中org.mybatis.spring.annotation.MapperScan.<init>()方法的一些代码示例,展示了MapperScan.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MapperScan.<init>()方法的具体详情如下:
包路径:org.mybatis.spring.annotation.MapperScan
类名称:MapperScan
方法名:<init>

MapperScan.<init>介绍

暂无

代码示例

代码示例来源:origin: ityouknow/spring-boot-examples

@SpringBootApplication
@MapperScan("com.neo.mapper")
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}

代码示例来源:origin: ityouknow/spring-boot-examples

@SpringBootApplication
@MapperScan("com.neo.mapper")
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }
}

代码示例来源:origin: macrozheng/mall

@SpringBootApplication
@MapperScan({"com.macro.mall.mapper","com.macro.mall.search.dao"})
public class MallSearchApplication {

  public static void main(String[] args) {
    SpringApplication.run(MallSearchApplication.class, args);
  }
}

代码示例来源:origin: macrozheng/mall

@SpringBootApplication
@MapperScan("com.macro.mall.mapper")
public class MallDemoApplication{
  public static void main(String[] args) {
    SpringApplication.run(MallDemoApplication.class, args);
  }
}

代码示例来源:origin: linlinjava/litemall

@SpringBootApplication(scanBasePackages = {"org.linlinjava.litemall.db", "org.linlinjava.litemall.core"})
@MapperScan("org.linlinjava.litemall.db.dao")
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}

代码示例来源:origin: linlinjava/litemall

@SpringBootApplication(scanBasePackages = {"org.linlinjava.litemall.db"})
@MapperScan("org.linlinjava.litemall.db.dao")
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}

代码示例来源:origin: macrozheng/mall

@SpringBootApplication
@MapperScan({"com.macro.mall.mapper","com.macro.mall.portal.dao"})
@EnableScheduling
public class MallPortalApplication {

  public static void main(String[] args) {
    SpringApplication.run(MallPortalApplication.class, args);
  }

}

代码示例来源:origin: macrozheng/mall

/**
 * 应用启动入口
 * Created by macro on 2018/4/26.
 */
@SpringBootApplication
@MapperScan({"com.macro.mall.mapper","com.macro.mall.dao"})
@EnableTransactionManagement
public class MallAdminApplication {
  public static void main(String[] args) {
    SpringApplication.run(MallAdminApplication.class, args);
  }
}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 */
@Configuration
@ComponentScan({"org.hswebframework.web.dashboard.local"
    , "org.hswebframework.web.controller.dashboard"})
@MapperScan(value = "org.hswebframework.web.dashboard.local.dao", markerInterface = Dao.class)
public class DashboardAutoConfiguration {
}

代码示例来源:origin: linlinjava/litemall

@SpringBootApplication(scanBasePackages = {"org.linlinjava.litemall"})
@MapperScan("org.linlinjava.litemall.db.dao")
@EnableTransactionManagement
@EnableScheduling
public class Application {

  public static void main(String[] args) throws Exception {
    SpringApplication.run(Application.class, args);
  }

}

代码示例来源:origin: linlinjava/litemall

@SpringBootApplication(scanBasePackages = {"org.linlinjava.litemall.db", "org.linlinjava.litemall.core", "org.linlinjava.litemall.wx"})
@MapperScan("org.linlinjava.litemall.db.dao")
@EnableTransactionManagement
@EnableScheduling
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}

代码示例来源:origin: linlinjava/litemall

@SpringBootApplication(scanBasePackages = {"org.linlinjava.litemall.db", "org.linlinjava.litemall.core", "org.linlinjava.litemall.admin"})
@MapperScan("org.linlinjava.litemall.db.dao")
@EnableTransactionManagement
@EnableScheduling
public class Application {

  public static void main(String[] args) {
    SpringApplication.run(Application.class, args);
  }

}

代码示例来源:origin: hs-web/hsweb-framework

/**
 * @author zhouhao
 */
@Configuration
@ComponentScan({"org.hswebframework.web.dictionary.simple"
    , "org.hswebframework.web.controller.dictionary"})
@MapperScan(value = "org.hswebframework.web.dictionary.simple.dao",markerInterface = Dao.class)
public class DictionaryFactoryAutoConfiguration {
  @Bean
  @ConditionalOnMissingBean(DictionaryParserBuilder.class)
  public DictionaryParserBuilder dictionaryParserBuilder() {
    return new SimpleDictionaryParserBuilder();
  }

  @Bean
  public DictSupportApi dictSupportApi(DictDefineRepository repository) {
    return new DefaultDictSupportApi(repository);
  }
}

代码示例来源:origin: G-Joker/WeaponApp

@SpringBootApplication()
@EnableScheduling()
@MapperScan("com.app.server.mapper")
public class BaseApplication {

  public static void main(String[] args) {
    SpringApplication.run(BaseApplication.class, args);
  }
}

代码示例来源:origin: cachecats/coderiver

@SpringBootApplication
@EnableDiscoveryClient
@EnableSwagger2
@MapperScan("com.solo.coderiver.project.mapper")
public class ProjectApplication {

  public static void main(String[] args) {
    SpringApplication.run(ProjectApplication.class, args);
  }
}

代码示例来源:origin: prontera/spring-cloud-rest-tcc

@EnableAsync
@EnableScheduling
@MapperScan(basePackages = "com.github.prontera.persistence", annotationClass = MyBatisRepository.class)
@SpringCloudApplication
public class ProductMsApplication {

  public static void main(String[] args) {
    SpringApplication.run(ProductMsApplication.class, args);
  }
}

代码示例来源:origin: prontera/spring-cloud-rest-tcc

@EnableAsync
@EnableScheduling
@MapperScan(basePackages = "com.github.prontera.persistence", annotationClass = MyBatisRepository.class)
@SpringCloudApplication
public class AccountMsApplication {

  public static void main(String[] args) {
    SpringApplication.run(AccountMsApplication.class, args);
  }
}

代码示例来源:origin: baomidou/mybatis-plus

/**
 * @author nieqiurong 2018/8/14 13:18.
 */
@Configuration
@MapperScan("com.baomidou.mybatisplus.test.h2.entity.mapper")
public class MybatisXmlConfig {

  @Bean("mybatisSqlSession")
  public SqlSessionFactory sqlSessionFactory(DataSource dataSource) throws Exception {
    MybatisSqlSessionFactoryBean sqlSessionFactory = new MybatisSqlSessionFactoryBean();
    sqlSessionFactory.setDataSource(dataSource);
    sqlSessionFactory.setTypeAliasesPackage("com.baomidou.mybatisplus.test.h2.entity.persistent");
    sqlSessionFactory.setConfigLocation(new ClassPathResource("mybatis-config.xml"));
    sqlSessionFactory.setTypeEnumsPackage("com.baomidou.mybatisplus.test.h2.entity.enums");
    return sqlSessionFactory.getObject();
  }

}

代码示例来源:origin: prontera/spring-cloud-rest-tcc

@EnableFeignClients
@SpringCloudApplication
@MapperScan(basePackages = "com.github.prontera.persistence", annotationClass = MyBatisRepository.class)
public class MembershipMsApplication {

  public static void main(String[] args) {
    SpringApplication.run(MembershipMsApplication.class, args);
  }
}

代码示例来源:origin: prontera/spring-cloud-rest-tcc

@EnableFeignClients
@SpringCloudApplication
@MapperScan(basePackages = "com.github.prontera.persistence", annotationClass = MyBatisRepository.class)
public class OrderMsApplication {

  public static void main(String[] args) {
    SpringApplication.run(OrderMsApplication.class, args);
  }
}

相关文章

MapperScan类方法