20 lines
520 B
Java
20 lines
520 B
Java
package org.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("org.baeldung")
|
|
public class SpringTestConfig {
|
|
|
|
@Bean
|
|
public RestTemplate restTemplate() {
|
|
return new RestTemplate();
|
|
}
|
|
|
|
}
|