mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
}