JAVA-960: Migrate spring-resttemplate to com.baeldung

This commit is contained in:
Krzysztof Woyke
2020-03-19 15:40:01 +01:00
parent 50e1711d60
commit 8044974725
28 changed files with 51 additions and 70 deletions

View File

@@ -0,0 +1,19 @@
package com.baeldung;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;
@Configuration
@EnableAutoConfiguration
@ComponentScan("com.baeldung")
public class SpringTestConfig {
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
}