Spring RestTemplate的使用示例

@Bean注册一个RestTemplate:

 

调用服务:

因为要参与网络传输,所以要实现序列化接口:

猜你喜欢

转载自www.cnblogs.com/niwotaxuexiba/p/10853066.html