@AllArgsConstructor注解和@NoArgsConstructor的作用时间:2025-03-19 08:10:51@AllArgsConstructor 注解作用在类上,使用后为类生成一个全参构造函数(含有已申明的所有属性参数) @NoArgsConstructor 注解作用在类上,使用后为类生成一个无参构造函数