You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@servicecomb.apache.org by "YaoHaishi (JIRA)" <ji...@apache.org> on 2018/07/03 06:59:00 UTC
[jira] [Created] (SCB-708) Support assembling query and path param
into Object parameter(in Spring MVC developing style)
YaoHaishi created SCB-708:
-----------------------------
Summary: Support assembling query and path param into Object parameter(in Spring MVC developing style)
Key: SCB-708
URL: https://issues.apache.org/jira/browse/SCB-708
Project: Apache ServiceComb
Issue Type: New Feature
Reporter: YaoHaishi
Assignee: YaoHaishi
In Spring Boot, user can define a REST operation with Object parameters, and there is no Annotation on the param like below:
{code:java}
@RequestMapping("/address/{city}/{country}")
public String address(Address address)
{code}
{code:java}
public class Address {
String country;
String city;
}
{code}
Spring can assemble the path variable city and country into address. And you can also define the path like /address?city=cc&country=co, Spring can also assemble the query param into address.
We need to support similar function.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)