[英]Lombok Private Constructor
Is there any annotation available for Lombok private NoArgConstructor? Lombok 私有 NoArgConstructor 是否有可用的注释? Lombok @NoArgConstructor
creates a public Constructor with no parameter. Lombok @NoArgConstructor
创建一个没有参数的公共构造函数。 But I want private constructor annotation.但我想要私有构造函数注释。
Use the access level element in the annotation.在注释中使用访问级别元素。 @NoArgsConstructor(access = AccessLevel.PRIVATE)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.