Class RestClientConfig
java.lang.Object
com.plantoml.plantomlserver.config.RestClientConfig
Configuration class for REST client settings.
This class defines beans and configuration settings used across the application, specifically related to RESTful web services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.client.RestTemplateCreates and configures aRestTemplatebean.
-
Constructor Details
-
RestClientConfig
public RestClientConfig()
-
-
Method Details
-
restTemplate
@Bean public org.springframework.web.client.RestTemplate restTemplate()Creates and configures aRestTemplatebean.The
RestTemplateis used for making HTTP requests to external services. This bean can be autowired into other components where RESTful requests are needed.- Returns:
- A
RestTemplateinstance.
-