package com.terra.proxy.properties; import lombok.Data; import org.springframework.boot.SpringBootConfiguration; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.context.annotation.PropertySource; @Data @SpringBootConfiguration @PropertySource(value = {"classpath:terra.properties"}) @ConfigurationProperties(prefix = "terra") public class TerraProperties { private ProxyProperties proxy = new ProxyProperties(); public ProxyProperties getProxy() { return proxy; } public void setProxy(ProxyProperties proxy) { this.proxy = proxy; } }