package com.brains.springboot.learnspringboot;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import lombok.Data;
@ConfigurationProperties(prefix = "currency-service")
@Data
@Component
public class CurrencyServiceConfiguration {
private String url;
private String username;
private String key;
}
Leave a Reply