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/09/15 08:52:40 UTC

[GitHub] [dubbo] BurningCN commented on issue #8803: 有没有熟悉dubbo.scan.base-packages和@DubboService源代码的大佬?

BurningCN commented on issue #8803:
URL: https://github.com/apache/dubbo/issues/8803#issuecomment-919827869


   @DubboService只是一个标记,配置扫描包是会识别包里面带有该注解的标记,然后做一些处理。再比如说你有多个包,每个包里面含有各自想要暴露的服务(含有@DubboService注解),但是某个时刻我只想暴露其中一个包下的服务,就可以配置对应的包扫描规则。
   
   这点就和spring的@Component和@ComponentScan一样


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