摘要: 首先是4个自定义注解类StaticResourceType.java public enum StaticResourceType { LESS,CSS,JS} StaticResource.java @Target({ElementType.FIELD})@Retention(RetentionP 阅读全文
posted @ 2016-06-22 21:55 煮海焚天 阅读(497) 评论(0) 推荐(0) 编辑
摘要: 元注解: 元注解的作用就是负责注解其他注解。Java5.0定义了4个标准的meta-annotation类型,它们被用来提供对其它 annotation类型作说明。Java5.0定义的元注解: 1.@Target, 2.@Retention, 3.@Documented, 4.@Inherited 阅读全文
posted @ 2016-06-22 21:26 煮海焚天 阅读(181) 评论(0) 推荐(0) 编辑