lidongdong
2023-09-14 a1abd1e4ddf15d3ce1d3d0b22e7c7ac924d63e43
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;
}