代码获取
@Data
@Component
@ConfigurationProperties(prefix = "corp")
public class DataProperties {
/**
* 协议
*/
private String protocol;
/**
* 发布
*/
private String deploy;
}
nacos配置
corp:
protocol: https
deploy: XXxX