org.mybatis.spring.annotation.MapperScan类的使用及代码示例

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

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

MapperScan介绍

暂无

代码示例

代码示例来源: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: ityouknow/spring-boot-examples

@MapperScan(basePackages = "com.neo.mapper.test2", sqlSessionTemplateRef  = "test2SqlSessionTemplate")
public class DataSource2Config {

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

@MapperScan(basePackages = "com.neo.mapper.test2", sqlSessionTemplateRef  = "test2SqlSessionTemplate")
public class DataSource2Config {

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

@MapperScan(basePackages = "com.neo.mapper.test1", sqlSessionTemplateRef  = "test1SqlSessionTemplate")
public class DataSource1Config {

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

@MapperScan(basePackages = "com.neo.mapper.test1", sqlSessionTemplateRef  = "test1SqlSessionTemplate")
public class DataSource1Config {

代码示例来源: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: 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);
  }
}

相关文章

MapperScan类方法