gang0713 edited a comment on issue #8209:
URL: https://github.com/apache/dubbo/issues/8209#issuecomment-875421131
@AlbumenJ 发现是在接口定义中参数使用了abstract interface 定义的类导致的。但是同样的代码,在3.0.0里是可以。
调用方法后打印日志 eBean$Dubbo Reference Lazy Init TargetSource : Initializing lazy
target object
然后就超时了。
/**
* 通过name获取单个系统属性
*
* @return
*/
String findSystemProperty(SystemProperty systemProperty);
/**
* 参数.
*
*/
public abstract interface SystemProperty
{
/**
* 获取参数类型ID.
*
* @return {@link String}
*/
public abstract String getType();
/**
* 获取参数关键字.
*
* @return {@link String}
*/
public abstract String getKey();
/**
* 获取参数值.
*
* @return {@link String}
*/
public abstract String getValue();
}
实现类SystemVariable使用了enum
public enum SystemVariable implements SystemProperty, Serializable {
USERNAME_REGEX("用户名规则正则表达式") {
@Override
public String getValue() {
return "/^[a-zA-Z]([w]{6,18})$/";
}
}
}
--
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]