首页 > 代码库 > spring boot 中访问 REST 接口

spring boot 中访问 REST 接口

RestTemplate restTemplate = new RestTemplate();Object result = restTemplate.getForObject("https://www.baidu.com", String.class);

spring boot 中访问 REST 接口