package com.ui.config; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @Component("config") public class SystemConfig { /** * 系统环境 */ @Value("${monitor.service.url}") private String serviceUrl; public String getServiceUrl() { return serviceUrl; } public void setServiceUrl(String serviceUrl) { this.serviceUrl = serviceUrl; } }