package com.example.demo.entity; import lombok.Data; import org.springframework.stereotype.Component; import org.springframework.boot.context.properties.ConfigurationProperties; import lombok.NoArgsConstructor; import lombok.AllArgsConstructor; @Data @Component @ConfigurationProperties(prefix = "student") @NoArgsConstructor @AllArgsConstructor public class Student { private String name; private Integer age; private String gender; }
标签:NoArgsConstructor,private,AllArgsConstructor,student,import,lombok From: https://www.cnblogs.com/cnetsa/p/16978168.html