[
https://issues.apache.org/jira/browse/SCB-1649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
liubao resolved SCB-1649.
-------------------------
Resolution: Fixed
> RestTemplate result can use a different model than provider
> -----------------------------------------------------------
>
> Key: SCB-1649
> URL: https://issues.apache.org/jira/browse/SCB-1649
> Project: Apache ServiceComb
> Issue Type: New Feature
> Components: Java-Chassis
> Reporter: liubao
> Assignee: liubao
> Priority: Major
> Fix For: java-chassis-2.0.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> Following code should execute successfully with throw an exception.
> ```
> responseModel = restTemplateInvoker
> .postForObject("cse://springmvc/springmvc/basic/postObject", responseModel,
> SpringmvcBasicResponseModel.class);
> assert responseModel.getResultMessage() == "Hello World";
> ```
>
> where SpringmvcBasicResponseModel may have different package, class name, and
> fields(less than provider).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)