You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by GitBox <gi...@apache.org> on 2021/07/07 10:04:52 UTC

[GitHub] [dubbo] gang0713 removed a comment on issue #8209: 3.0.0版本升级到3.0.1,服务启动正常,访问全超时。3.0.0版本正常。

gang0713 removed 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: notifications-unsubscribe@dubbo.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org