This topic describes how to set parameters and the types of parameters supported for a Dubbo microservice.
Method | Parameter type | Parameter setting |
String sayHello(String name); | java.lang.String | hello, dubbo |
String helloBean(HelloBean helloBean); | com.alibaba.pts.dubbo.api.DemoService | {"booleanValue":true,"helloSubValue":{"booleanValue":false,"intValue":2,"stringValue":"subbean"},"intValue":1,"stringValue":"bean"} |
String helloMap(Map helloMap); | java.util.Map | {"booleanValue":true,"helloSubValue":{"booleanValue":false,"intValue":2,"stringValue":"subbean"},"intValue":1,"stringValue":"bean"} |
String helloList(List helloList); | java.util.List | 1 |
String helloString(String helloString); | java.lang.String | hello, dubbo |
String helloInt(int helloInt); | int | 1 |
String helloBoolean(boolean helloBoolean); | boolean | true |
Learn more
For more information about issues that may occur when you use the Dubbo plug-in, see FAQ on GitHub.