101captain
2022-06-01 1a21c37e2c41236c89e97a33e9da65c5fe7971b6
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);
    }
}