Refactor AuthService to use default RestTemplate and ObjectMapper
Replaces constructor-based dependency injection with direct instantiation of RestTemplate and ObjectMapper in AuthService. Simplifies the class by removing the constructor and initializing dependencies inline.ACONNECT-DEPOSITACCOUNT-API
parent
10084bbd48
commit
29a5e2f5e1
@ -0,0 +1,15 @@
|
|||||||
|
package com.mfsys.aconnect.configuration.config;
|
||||||
|
|
||||||
|
import org.springframework.context.annotation.Bean;
|
||||||
|
import org.springframework.context.annotation.Configuration;
|
||||||
|
import org.springframework.http.client.HttpComponentsClientHttpRequestFactory;
|
||||||
|
import org.springframework.web.client.RestTemplate;
|
||||||
|
|
||||||
|
@Configuration
|
||||||
|
public class RestTemplateConfig {
|
||||||
|
|
||||||
|
@Bean
|
||||||
|
public RestTemplate restTemplate() {
|
||||||
|
return new RestTemplate(new HttpComponentsClientHttpRequestFactory());
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue