Skip to content

Commit

Permalink
在Dao名称冲突的时候可以启用别名
Browse files Browse the repository at this point in the history
  • Loading branch information
miemiedev committed Mar 25, 2013
1 parent 824dcb9 commit 3330b0f
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package org.springside.examples.showcase.repository.mybatis;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.*;

import org.springframework.stereotype.Component;

/**
* 标识MyBatis的DAO,方便{@link org.mybatis.spring.mapper.MapperScannerConfigurer}的扫描。
Expand All @@ -13,5 +12,8 @@
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
@Component
public @interface MyBatisRepository {
String value() default "";
}

0 comments on commit 3330b0f

Please sign in to comment.