package cn.lihongjie.coal.spring.config;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConfigurationProperties("system")
@Getter
@Setter
public class SystemConfig {

    private AnonymousConfig anonymous;

    private String testAdminToken;

    @Data
    public static class AnonymousConfig {

        private List<String> url;
    }
}
