Package api.mpba.rastvdmy.config
Class AppConfig
java.lang.Object
api.mpba.rastvdmy.config.AppConfig
This class is responsible for the configuration of the application.
It initializes the admin and provides a RestTemplate bean for making HTTP requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.client.RestTemplate
This method provides a RestTemplate bean.
-
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.
-