nacos无法动态刷新配置,更新配置后程序暂停

将nacos对应list-size从1000改为2000。程序暂停不打印listSize的日志

img

@Service
@Slf4j
@RefreshScope
public class Raw2RedisService {
    @Value("${parmas.swap.list-size}")
    private long listSize;
}

2021-08-07 01:06:16.735 WARN [ main] : Ignore the empty nacos configuration and get it based on dataId[realtime-data-collect] & group[DEFAULT_GROUP]
2021-08-07 01:06:16.780 INFO [ main] : No active profile set, falling back to default profiles: default
2021-08-07 01:06:17.930 WARN [ main] : No URLs will be polled as dynamic configuration sources.
2021-08-07 01:06:17.934 WARN [ main] : No URLs will be polled as dynamic configuration sources.
2021-08-07 01:06:18.720 INFO [ main] : Started RealtimeDataCollectApplication in 2.949 seconds (JVM running for 3.522)
2021-08-07 01:06:20.806 INFO [ scheduling-1] : 1000
2021-08-07 01:06:22.098 INFO [ scheduling-1] : 1000
2021-08-07 01:06:24.086 INFO [ scheduling-1] : 1000
2021-08-07 01:06:26.121 INFO [ scheduling-1] : 1000
2021-08-07 01:06:28.205 INFO [ scheduling-1] : 1000
2021-08-07 01:06:29.163 WARN [139_8848-public] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[realtime-data-collect] & group[DEFAULT_GROUP]

NacosPropertySourceBuilder 这不是有日志嘛,debug看看呗