springboot 定时任务:

@EnableScheduling
@Scheduled(fixedRate = 1000*60)
@Scheduled(cron = "")

乱码:

@Bean

public RestTemplate restTemplate() {

RestTemplate restTemplate = new RestTemplate();
restTemplate.getMessageConverters().set(1, new StringHttpMessageConverter(StandardCharsets.UTF_8));
return restTemplate;

}