本文整理汇总了Java中org.mybatis.spring.mapper.AnnotatedMapper类的典型用法代码示例。如果您正苦于以下问题:Java AnnotatedMapper类的具体用法?Java AnnotatedMapper怎么用?Java AnnotatedMapper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AnnotatedMapper类属于org.mybatis.spring.mapper包,在下文中一共展示了AnnotatedMapper类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testNameGenerator
import org.mybatis.spring.mapper.AnnotatedMapper; //导入依赖的package包/类
@Test
public void testNameGenerator() {
applicationContext.register(AppConfigWithNameGenerator.class);
startContext();
// only child inferfaces should be loaded and named with its class name
applicationContext.getBean(MapperInterface.class.getName());
applicationContext.getBean(MapperSubinterface.class.getName());
applicationContext.getBean(MapperChildInterface.class.getName());
applicationContext.getBean(AnnotatedMapper.class.getName());
}
示例2: testNameGenerator
import org.mybatis.spring.mapper.AnnotatedMapper; //导入依赖的package包/类
@Test
public void testNameGenerator() {
applicationContext = new ClassPathXmlApplicationContext(new String[] { "org/mybatis/spring/config/name-generator.xml" }, setupSqlSessionFactory());
startContext();
// only child inferfaces should be loaded and named with its class name
applicationContext.getBean(MapperInterface.class.getName());
applicationContext.getBean(MapperSubinterface.class.getName());
applicationContext.getBean(MapperChildInterface.class.getName());
applicationContext.getBean(AnnotatedMapper.class.getName());
}