1
jyy
2021-07-11 2957623eed5fabb83b8f64dc106ec9b6d129c09d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package com.matrix.core.tools;
 
import org.springframework.core.env.Environment;
 
/**
 * 读取定义的属性文件
 * @author JIANGYOUYAO
 * @email 935090232@qq.com
 */
public class PropertiesUtil {
 
    public static String getString(String key) {
        Environment environment= WebUtil.getApplicationContext().getBean(Environment.class);
        return environment.getProperty(key);
    }
 
}