Closed AYue-94 closed 2 months ago
Detect the issue's language is not English and translate it automatically.
Title: About the problem that factoryName in ClassInjectDefine is empty
@AYue-94 ClassInjectDefine is declared to ensure that these classes can be loaded through the class loader of the host. In later versions, ClassInjectDefine with empty factoryName also needs to be declared.
I try to remove ClassInjectDefine with empty factoryName, for example in dynamic-config-plugin. and the host springboot application can works well with dynamic-config-plugin.
for example:
so why need to declare DynamicConfigPropertySource in ClassInjectDefine with empty factoryName ?
@AYue-94 These classes are loaded by the host to shield the original configuration center of the host. If these classes are not declared, the host can run properly, but the functions are affected.
what does "functions are affected" mean? can you give me some example? I'm very confusion
@AYue-94 For example, the dynamic-config-plugin cannot shield the original configuration center after removing these declarations.
Answers have been provided, and no other questions are available. Therefore, this issue is closed.
What do you want to ask?