From 8b26ceccdc3474924b38717ee7cdcfb505c2fcce Mon Sep 17 00:00:00 2001 From: "gu.martinm@gmail.com" Date: Sun, 9 Feb 2014 14:07:18 +0100 Subject: [PATCH] MyBatis Spring: mybatis:scan filter by interface --- .../de/example/mybatis/mapper/filter/MyBatisScanFilter.java | 11 +++++++++++ .../src/main/resources/generator/generatorConfig.xml | 8 ++++++++ MyBatis/MyBatis-Spring/src/main/resources/spring-config.xml | 12 ++++++++++-- 3 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 MyBatis/MyBatis-Spring/src/main/java/de/example/mybatis/mapper/filter/MyBatisScanFilter.java diff --git a/MyBatis/MyBatis-Spring/src/main/java/de/example/mybatis/mapper/filter/MyBatisScanFilter.java b/MyBatis/MyBatis-Spring/src/main/java/de/example/mybatis/mapper/filter/MyBatisScanFilter.java new file mode 100644 index 0000000..104a322 --- /dev/null +++ b/MyBatis/MyBatis-Spring/src/main/java/de/example/mybatis/mapper/filter/MyBatisScanFilter.java @@ -0,0 +1,11 @@ +package de.example.mybatis.mapper.filter; + + +/** + * + * MyBatis will search for this interface. + * + */ +public interface MyBatisScanFilter { + +} diff --git a/MyBatis/MyBatis-Spring/src/main/resources/generator/generatorConfig.xml b/MyBatis/MyBatis-Spring/src/main/resources/generator/generatorConfig.xml index 652403a..3fc63b3 100644 --- a/MyBatis/MyBatis-Spring/src/main/resources/generator/generatorConfig.xml +++ b/MyBatis/MyBatis-Spring/src/main/resources/generator/generatorConfig.xml @@ -59,11 +59,19 @@ + +
+ +
diff --git a/MyBatis/MyBatis-Spring/src/main/resources/spring-config.xml b/MyBatis/MyBatis-Spring/src/main/resources/spring-config.xml index 9729c88..0fa5d05 100644 --- a/MyBatis/MyBatis-Spring/src/main/resources/spring-config.xml +++ b/MyBatis/MyBatis-Spring/src/main/resources/spring-config.xml @@ -16,8 +16,16 @@ http://mybatis.org/schema/mybatis-spring http://mybatis.org/schema/mybatis-spring.xsd"> - - + + -- 2.1.4