jasypt-spring-boot
jasypt-spring-boot copied to clipboard
fix: #326 修复 SpringCloud 下,远程配置文件修改(如Nacos),本地ConfigurationProperties 配置类没…
‘Spring Cloud’ 中绝大多数对 ‘Spring Environment’ 操作的组件,应当比 ‘ConfigurationPropertiesRebinder’ 优先级要高,否则就会出现 ‘ConfigurationProperties’ 配置类更新不及时的问题。所以建议这里的 ‘RefreshScopeRefreshedEventListener’ 优先级不要设置成最低,只要比 ‘ConfigurationPropertiesRebinder’ 高即可; -- from the technical team of YXT(yxt.com)
The vast majority of components in 'spring cloud' that operate on 'spring environment' should have higher priority than 'configurationpropertiesrebinder'. Otherwise, the 'configurationproperties' configuration class will not be updated in time. Therefore, it is recommended that the priority of 'refreshscoperefreshedeventlistener' should not be set to the lowest, as long as it is higher than 'configurationpropertiesrebinder';