1、@AllArgsConstructor注解作用
它是lombok中的注解,作用在类上;
使用后添加一个构造函数,该构造函数含有所有已声明字段属性参数
对应的 @NoArgsConstructor 是添加一个无参数的构造器,一般使用@Builder注解时同时会使用@AllArgsConstructor和@NoArgsConstructor
2、注解@interface不是接口是注解类,在jdk1.5之后加入的功能,使用@interface自定义注解时,自动继承了java.lang.annotation.Annotation接口。