dubbo stop it from annotations

Although a variety of ways to configure dubbo the same thing last instantiated as each configuration object dubbo, but understand the resolution process under annotation dubbo also allow us to know how to instantiate a proxy object when spring bean, and this point is to understand The whole process allows us to thinking more clearly:

Before the start of spring the best usage of @Import notes are simple to understand.

First, we can see there are a @EnableDubbo @Import comment value points ImportSelector class implements the interface:

 

 

 

 

 

 

Here debugging result, Spring Single example will produce according to names defined DubboConfigConfiguration.Signl returned results can be seen a number of comments on Single Class

 

 

 

 

 

 

 

 

Guess you like

Origin www.cnblogs.com/lccsblog/p/11613855.html