Tuesday, May 6, 2014

Spring Meta Annotation

If you have a lot of classes have same annotations, you can create composed annotations.



http://www.intertech.com/Blog/spring-4-meta-annotations/



If you use it in spring junit test, you need add this



@Target(ElementType.TYPE)

@Retention(RetentionPolicy.RUNTIME)




http://docs.spring.io/spring/docs/current/spring-framework-reference/html/testing.html search for Meta-Annotation Support for Testing

No comments:

Post a Comment