package com.panzhihua.service_equipment.config; import io.swagger.annotations.ApiModel; import lombok.Data; import org.springframework.beans.factory.annotation.Value; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @ApiModel("门禁账号密码") @Data @Component @ConfigurationProperties(prefix = "uni") public class AccessConfig { @Value("${access.username}") private String userName; // FTP 登录密码 @Value("${access.password}") private String password; }