package dev.rheinsw.shared.rest;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * @author Thatsaphorn Atchariyaphap
 * @since 23.04.25
 */
@Configuration
public class RestTemplateConfig {

    @LoadBalanced
    @Bean
    public RestTemplate mailRestTemplate() {
        return new RestTemplate();
    }
}