Open yuluo-yx opened 6 months ago
seata.config.type and seata.registry.type was put in a hashMap ,this hashmap was instance a DefaultValueFromPropertyObject
@uytrytryi7y7665688 img upload failed.
seata.config.type and seata.registry.type was put in a hashMap ,this hashmap was instance a DefaultValueFromPropertyObject
yep, so what your means?
If there is no system property, springboot environment, And arguments, resput are assigned and returned by the DefaultValueFromPeopleObject, which is then loaded by the EnhancedService Loader in the ConfigurationFactory and assigned to the CURRENT_Sile-INSTANCE field. Can we change its initial value from file to nacos during class loading initialization???
I don't understand what you're trying to say, the requirement of this issue is just to give the seata attribute a default value, it doesn't seem that complicated, you can see how it's implemented in other starters, and it doesn't have anything to do with nacos, it's just that the value of seata is changed to nacos in this case, and nacos is used as a registry.
As shown in the figure, this part of the configuration is relatively redundant compared to the integration of spring cloud alibaba, we can remove these configuration items by setting the default properties to simplify the yml configuration.