Home > Back-end >  Provide an interface, the components to do your own implementation, this design in the service mode,
Provide an interface, the components to do your own implementation, this design in the service mode,

Time:04-17

, used to define an interface, and then the implementation of the interface components provide a class, by the system to call, but split in micro (based on dubbo) after service, this interface has multiple implementations, register need to indicate the implementation class, about 30 service, for example, has registered the 30 service, with the same group can be used to distinguish, but the dubbo service granularity based on interface mode, too messy, you is how to solve this problem?

CodePudding user response:

Group with good ah, just registered suggested annotations, it'll be a lot more elegant, just don't know what is your so-called disorderly
  • Related