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

   <!-- If you need to report a security issue please visit 
https://github.com/apache/dubbo/security/policy -->
   
   - [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Environment
   
   * Dubbo version: 3.2.10
   * Operating System version: win10
   * Java version: 8/21
   * springboot: 2.2.9/3.1.x
   * nacos: 2.2.3/2.2.4
   
   ### Steps to reproduce this issue
   
   这是dubbo2升级到dubbo3的问题。
   在dubbo2中,可以像官方文档所说的,暴露`ServiceConfig`作为spring bean,然后就会注册provider到注册中心。
   但在dubbo3中,这种方式无效,nacos中没有生成mapping文件。
   
   
   ```java
   @Configuration
   public class ProviderConfiguration {
       @Bean
       public ServiceConfig demoService() {
           ServiceConfig service = new ServiceConfig();
           service.setInterface(DemoService.class);
           service.setRef(new DemoServiceImpl());
           service.setGroup("dev");
           service.setVersion("1.0.0");
           Map<String, String> parameters = new HashMap<>();
           service.setParameters(parameters);
           return service;
       }
   }
   ```
   
   Pls. provide [GitHub address] to reproduce this issue.
   
   ### Expected Behavior
   
   可以注册到注册中心
   
   ### Actual Behavior
   
   没有注册
   
   If there is an exception, please attach the exception trace:
   
   ```
   Just put your stack trace here!
   ```
   


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

Reply via email to