import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.web.client.RestTemplate; @Configuration //标识配置类 public class ConfigBean { @Bean public RestTemplate getRestTemplate() { return new RestTemplate(); } }
11-12
8904
12-02
4881
05-12
1368