Class AppConfig

java.lang.Object
api.mpba.rastvdmy.config.AppConfig

@Configuration public class AppConfig extends Object
This class is responsible for the configuration of the application. It initializes the admin and provides a RestTemplate bean for making HTTP requests.
  • Constructor Details

    • AppConfig

      public AppConfig()
  • Method Details

    • restTemplate

      @Bean public org.springframework.web.client.RestTemplate restTemplate()
      This method provides a RestTemplate bean. RestTemplate is a synchronous HTTP client that we can use to consume HTTP web services.
      Returns:
      A new instance of RestTemplate.