apache / dubbo-spring-boot-project

Spring Boot Project for Apache Dubbo
https://dubbo.apache.org
Apache License 2.0
5.41k stars 1.88k forks source link

consumer use filer,@Reference service is null #816

Closed l343765828 closed 1 year ago

l343765828 commented 1 year ago

public class DubboLogFilter implements Filter { @Reference(version = "1.0.1",check = false) private GetId getid;

@Override public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException { try { System.out.println("did:" + getid.getUidTest("a")); } catch (Exception e) { e.printStackTrace(); } finally { return invoker.invoke(invocation); } }

GetId is null

dubbo version is 2.7.5, How to solve?

l343765828 commented 1 year ago

@mercyblitz

l343765828 commented 1 year ago

@AlbumenJ

AlbumenJ commented 1 year ago

Duplicated with https://github.com/apache/dubbo/issues/11539