101captain
2021-11-09 e7f03acfa5ee4ad4fd6d1ee9e9ae9a5655488f6d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.springcloudme.servicezuul.util;
 
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
 
@Component
public class Utils {
 
    @Autowired
    private Environment env;
 
    public String getProps(String key){
        return env.getProperty(key);
    }
}