当spring.cloud.kubernetes.reload.strategy设置为restart_context时,如果配置发生变化,重新构建ApplicationContext时,不会重新创建Configuration实例,也就是 ConfigurationFactory.getInstance()返回值不变,
变化前: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@68699afc, started on Fri May 05 15:46:20 CST 2023, parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@7308ffff
变化后: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@1783b248, started on Fri May 05 15:48:24 CST 2023, parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@3a2954a9
报错: java.lang.IllegalStateException: org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@68699afc has been closed already
有优化或者版本升级吗?