1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
| package com.panzhihua.auth.config;
|
| import lombok.Data;
| import org.springframework.boot.context.properties.ConfigurationProperties;
| import org.springframework.stereotype.Component;
|
| /**
| * 读取项目相关配置
| *
| * @author huanghongfa
| */
| @Data
| @Component
| @ConfigurationProperties(prefix = "auth")
| public class AuthConfig
| {
| /** 项目名称 */
| public String name;
| /** 版本 */
| public String version;
|
| /** 上传路径 */
| public static String profile;
| /** 获取地址开关 */
| public static boolean addressEnabled;
|
|
|
|
| }
|
|