package com.diaoyun.zion.master.config;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * domain.properties 配置类
 */
@Component("domainProperties")
@PropertySource({"classpath:properties/domain.properties"})
public class DomainProperties {

    @Autowired
    private Environment env;

    public String getProperty(String propertyName) {
        return env.getProperty(propertyName);
    }
}
