HelloToGithub opened a new issue, #11775: URL: https://github.com/apache/dubbo/issues/11775
<!-- If you need to report a security issue please visit https://github.com/apache/dubbo/security/policy --> <!-- For all design discussions please continue. --> 使用官方dubbo-example 1、dubbo 3.1.7 2、serialization 配置为fastjson2 对象包含集合 使用Arrays.asList创建对象的传输的时候 服务接收的时候会被解析成HashMap 使用 new ArrayList<>()不会有问题 例子如下: Task,class run ` ParamsDTO paramsDTO = new ParamsDTO(); ParamsItemDTO paramsItemDTO = new ParamsItemDTO(); paramsItemDTO.setA("aaa"); paramsDTO.setParamsItems(Arrays.asList(paramsItemDTO)); demoService.sayHello(paramsDTO); // List<ParamsItemDTO> a = new ArrayList<>(); // a.add(paramsItemDTO); // paramsDTO.setParamsItems(a); // demoService.sayHello(paramsDTO); ` ParamsDTO `@Data public class ParamsDTO implements Serializable { private List<ParamsItemDTO> paramsItems; }` ParamsItemDTO `@Data public class ParamsItemDTO implements Serializable { private String a; } `   -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
