启动类增加以下内容
public static void main(String[] args) {
SpringApplication.run(SyncApplication.class, args);
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}
public static void main(String[] args) {
SpringApplication.run(SyncApplication.class, args);
}
@Bean
public RestTemplate restTemplate() {
return new RestTemplate();
}