Spring boot 读取yml的自定义参数 yonghua2018 2018-05-16 964 阅读1分钟 刚开始接触Spring boot, 记录下。 yml中自定义参数 custom: ftpConfig: enable: 1 代码中读取 @Value("${custom.ftpConfig.enable}") private int enable;