摘要: 查看Spring中的@AliasFor的文档,英文描述如下: Usage ScenariosExplicit aliases within an annotation: within a single annotation, @AliasFor can be declared on a pair o 阅读全文
posted @ 2020-10-17 23:12 西伯利亚虎 阅读(2347) 评论(0) 推荐(0) 编辑
摘要: @AliasFor是一个注解,用于为注解属性声明别名。代码如下:它有两个属性value和attribute @AliasFor注解注释了自身,并且value和attribute互为别名。 使用案例介绍:1.把多个元注解的属性组合在一起形成新的注解如我们熟知的@SpringBootApplicatio 阅读全文
posted @ 2020-10-17 22:41 西伯利亚虎 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 关于注解首先引入官方文档的一句话:Java 注解用于为 Java 代码提供元数据。作为元数据,注解不直接影响你的代码执行,但也有一些类型的注解实际上可以用于这一目的。Java 注解是从 Java5 开始添加到 Java 的。看完这句话也许你还是一脸懵逼,接下我将从注解的定义、元注解、注解属性、自定义 阅读全文
posted @ 2020-10-17 22:19 西伯利亚虎 阅读(367) 评论(0) 推荐(0) 编辑

Permanence, perseverance and persistence in spite of all obstacles, discouragements and impossibilities: It is this, that in all things distinguishes the strong soul from the weak.