Reference for Dubbo microservice settings

Updated at: 2024-11-12 06:22

This topic describes how to set parameters and the types of parameters supported for a Dubbo microservice.

Method

Parameter type

Parameter setting

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.

  • On this page (1, O)
  • Learn more
Feedback
phone Contact Us

Chat now with Alibaba Cloud Customer Service to assist you in finding the right products and services to meet your needs.

alicare alicarealicarealicare