Eleanor Wilson

Results 6 comments of Eleanor Wilson

6.0替换成功,退出后再进来走一遍流程就会报 method inaccessible ,杀掉进程再进来是好的

you can setPadding when onScroll just like if (mActionBarHeight > 0) { if (Math.abs(getChildAt(0).getTop()) >= getChildAt(0) .getHeight() - mActionBarHeight) { setPadding(0, mActionBarHeight, 0, 0); } else if (getFirstVisiblePosition() == 0)...

当在application.properties中配置 ` nacos.config.data-ids=discover.bootstrap.properties nacos.config.type=properties nacos.config.bootstrap.enable=true nacos.config.group=discover nacos.config.remote-first=true ` 然后又在代码中配置: ` @NacosPropertySource(dataId = "discover.bootstrap.properties", groupId = "discover", autoRefreshed = true) ` nacos-config-spring-boot-starter 0.2.7 测试,在nacos上手动更新某个值,@NacosValue无法更新。 主要是MutablePropertySources有两个相同配置的NacosPropertySource。NacosPropertySourcePostProcessor#addListenerIfAutoRefreshed添加的匿名监听Listener每次更新的时候只替换最后一个NacosPropertySource,但是NacosValueAnnotationBeanPostProcessor#onApplicationEvent取的又是前面一个NacosPropertySource中的值,所以@NacosValue无法更新。

通过设置first = true解决了 ` @NacosPropertySource(dataId = "discover.bootstrap.properties", groupId = "discover", autoRefreshed = true, first = true) `