xiang
2023-09-14 66e4211cbfa154a87390b25c93b32d722e0d690c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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.context.annotation.Configuration;
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;
}