自定义Spring标签

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.springframework.stereotype.Component;

@Retention(RetentionPolicy.RUNTIME)
@Target({java.lang.annotation.ElementType.TYPE})
@Documented
@Component
public @interface MyBatisRepository
{
  public abstract String value();
}

 

posted @ 2016-01-05 15:28  也许还年轻  阅读(129)  评论(0编辑  收藏  举报