From: gu.martinm@gmail.com Date: Sun, 9 Feb 2014 13:07:18 +0000 (+0100) Subject: MyBatis Spring: mybatis:scan filter by interface X-Git-Url: https://git.gumartinm.name/?a=commitdiff_plain;h=8b26ceccdc3474924b38717ee7cdcfb505c2fcce;p=JavaForFun MyBatis Spring: mybatis:scan filter by interface --- 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"> - - + +