Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc序列化方式如何调整为fastjson? #1

Open
xf13163350809 opened this issue Apr 16, 2020 · 1 comment
Open

rpc序列化方式如何调整为fastjson? #1

xf13163350809 opened this issue Apr 16, 2020 · 1 comment

Comments

@xf13163350809
Copy link

该demo中使用的默认hessian2序列化方式,配置中修改为fastjson不生效,查看dubbo-php-framework-master/vendor/crazyxman中只存在hessian-parser方法。

@crazyxman
Copy link
Owner

crazyxman commented May 13, 2020

如果是作为Provider使用,改下Provider对应的配置文件protocol.serialization为fastjson 。
如果是作为Consumer使用,不需要指定序列化方式。
序列化为fastjson时 协议中传递的是json字符串,使用php内置的json序列化函数即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants