/*
 * File: src/main/java/purchase/utility/AppConfig.java
 * Description: This class serves as a configuration class for the Spring application.
 * It defines a bean for RestTemplate, which is used for making RESTful web service calls.
 * By declaring RestTemplate as a bean, it can be easily injected into other components
 * of the application, promoting reusability and separation of concerns.
 */

package com.nebula.erp.purchase.utility;

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

@Configuration
public class AppConfig {
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}