package com.tsi.sig.server.config;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.net.UnknownHostException;

@Slf4j
@Data
@Component
//@ConfigurationProperties(prefix = "kakao")
@ConfigurationProperties("kakao")
public class KakaoConfig {

    private String key = "tsi-sig-was";

    @PostConstruct
    private void init() throws UnknownHostException {

        log.info("[{}] --------------------", this.getClass().getSimpleName());
        log.info("[{}]          kakao.key: {}", this.getClass().getSimpleName(), this.key);
    }
}
