Skip to content

Unable to listen for file changes #1310

@tianmingxing

Description

@tianmingxing

Describe the bug

When the application starts, it reads the configuration from the specified file path and creates a MapPropertySource.
image

But in the logic of listening, KubernetesClientConfigMapPropertySource. class is compared to it.
image
image

image

View the real situation of Environment. getPropertySources() in the JVM.
image

So the mismatch between these two will result in the application not being hot loaded when the file content changes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions