student

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;
}
posted @ 2022-12-13 11:46  cnetsa  阅读(118)  评论(0编辑  收藏  举报