package com.ruoyi.web.core.config;

import com.ruoyi.web.job.CanalScheduling;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;

/**
 * @Description: TODO
 * @Author: huangcheng
 * @Date: 2021/8/17
 * @Version V1.0
 */
@Configuration
@ConfigurationProperties("canal")
@Data
public class CanalConfig {
    private List<Config> configs;
    @Data
    public static class Config {
        private String hostname;
        private int port;
        private String destination;
    }
}
