weibocom / motan

A cross-language remote procedure call(RPC) framework for rapid development of high performance distributed services.
Other
5.89k stars 1.78k forks source link

集成resful接口怎么进行Bean的形式传入参数 #645

Closed hetong1989 closed 6 years ago

hetong1989 commented 6 years ago

继承resful接口怎么进行Bean的形式传入参数? 接口:

@POST
@Consumes(value = {MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Produces(MediaType.APPLICATION_JSON)
ResponseEntity find(User user);

client调用 ResponseEntity responseEntity = restfulService.find(new User(1L));

报 javax.ws.rs.InternalServerErrorException: HTTP 500 Internal Server Error 错误

hetong1989 commented 6 years ago

已经解决了, 是调用到其他人的服务端上去了