We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
data-id
data-id名称携带的配置文件类型优先级高于ConfigType声明
ConfigType
@NacosPropertySource(dataId = application.properties, autoRefreshed = true, type = ConfigType.YAML)
其最终解析出来的config-type为properties
properties
NacosPropertySourceYamlTest.java
group
environment
nacos.data.id=application.properties
@NacosPropertySource(dataId = ${nacos.data.id}, autoRefreshed = true)
NacosPropertySourceReadFromEnvironmentTest.java