About ApplicationEvent and BootStrap
When I use "Spring Event Listener" to listen to the custom event "LivkEvent", use Spring.factories for autowiring, and introduce "org.springframework.cloud:spring-cloud-starter-bootstrap", my "Spring Event Listener" will Executed twice, I observed that the parent Application was generated when the event was published
this my demo code I'm not sure if it's a bug or just by design If the design is like this, what is a good solution
As discussed here https://github.com/spring-projects/spring-boot/issues/14656 I expect clean way to differentiate events coming from parent bootstrap context in listeners. In my case after adding kubernetes-config, my listeners receive events (earlier than i expect) from bootstrap context and I expect clean way to filter it.