bggmjxh opened a new issue #9131: URL: https://github.com/apache/dubbo/issues/9131
背景:项目是SpringBoot,用户信息的标识是放在request的header中和cookie中,然后把用户的uuid放到了ThreadLocal中,以便于随时随地获取用户信息(方便根据用户来做数据权限拦截、敏感的删除/修改方法拦截)。 问题: 1、在springboot 环境下,是否可以获取到request? 2、如果不能获取,那么我在PRC的服务提供方,就无法轻便的获取用户信息了,是否是必须要额外传递一个参数(uuid或者userinfo),然后重新根据参数把用户信息放到RPC服务提供方的ThreadLocal中。 其他: 还是说有其他更好的解决方案,还望给指一条明路。 -- 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]
