[英]How to make an annotaion that calls other annotations
I usually use specific lombok and spring annotations in every class that I open in work. 我通常在工作中打开的每个类中使用特定的lombok和spring注释。
Is there a way that I can create my custom annotation that will call the annotations that I need? 有没有一种方法可以创建自定义注释,该方法将调用所需的注释?
This is my class for exmple: 这是我的课程,例如:
@Getter
@Setter
@Embeddable
@AllArgsConstructor
@Builder
public class SomeName{}
And I want it to be: 我希望它是:
@SomeAnnotationName
public class SomeName{}
lombok
不支持此功能,但是有功能要求 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.