yeohx opened a new issue, #13152:
URL: https://github.com/apache/dubbo/issues/13152

   版本:
   <dependency>
               <groupId>org.apache.dubbo</groupId>
               <artifactId>dubbo</artifactId>
               <version>3.2.6</version>
           </dependency>
   代码用例:
    ApplicationConfig application = new ApplicationConfig();
           application.setName("Test-" + UUID.randomUUID().toString());
           RegistryConfig registryConfig = new RegistryConfig();
           registryConfig.setAddress("nacos://localhost:8848");
           application.setRegistry(registryConfig);
   
           ReferenceConfig<GenericService> reference = new ReferenceConfig<>();
           reference.setGeneric("true");
           reference.setApplication(application);
           reference.setInterface(interfaceName);
           reference.setVersion(version);
           SimpleReferenceCache referenceConfigCache = 
SimpleReferenceCache.getCache();
           GenericService genericService = referenceConfigCache.get(reference);
           return genericService;
   问题:
   reference.setApplication(application); 方法已经弃用.
   建议使用:org.apache.dubbo.config.AbstractConfig#setScopeModel(ScopeModel)代替
   说明里为了支持多应用
   但是ScopeModel需要如何创建呢?
   是否可以提供一个完整的3.*.*版本的泛型调用的例子.如何支持多应用的例子.
   我看了demo里面的泛型例子,是通过DubboBootstrap设置的.没有通过ScopeModel配置
   最好能在demo里面增加一下ScopeModel支持多应用泛化的例子


-- 
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.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

Reply via email to