AmosWong1998 commented on issue #11876: URL: https://github.com/apache/dubbo/issues/11876#issuecomment-1723659519
> > 不知道你的和我的问题对不对,我的问题是消费者setAttachment但是提供者get不到,看源码发现它走的是已废弃的代码getAttachment()方法。其中会if (value instanceof String),判断成立强转为string,不成立直接return null。 > > 如果是 set 的 string 类型的这里不应该有问题。 另外 attachment 是提供给业务编程侧使用的,如果是在 Filter 内使用的话需要直接基于 invocation 对象操作 【如果是在 Filter 内使用的话需要直接基于 invocation 对象操作】大佬这句话是什么意思没有理解?Filter里面不应该使用RpcContext或者attachment去传递业务标识吗? -- 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: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org