The invention provides an adaptive customer
service configuration method and
system based on
dependency injection, and relates to the technical field of
software application development, and the method comprises the steps: defining a
service component interface, customizing
annotation identification standard implementation and customer implementation; analyzing the configuration file and obtaining environment parameters required by the customized operation to form a customized operation configuration environment; scanning the specified packet path, identifying an implementation class with a customized
annotation identifier, analyzing the
annotation of the implementation class, and forming a candidate implementation set based on an analysis result; selecting implementation classes in the candidate implementation set, matching the implementation classes by adopting a screening mechanism, selecting standard implementation according to a
rollback strategy when the matched implementation classes are not screened, and determining an adaptive decision result; and injecting the target implementation class in the
adaptation decision result into the corresponding
service component, recording the whole process of the customer
adaptation and
dependency injection, and realizing the whole process of customer
service configuration. The
maintainability, the expandability and the development efficiency of the
system are improved.