nacos-spring-project
nacos-spring-project copied to clipboard
使用nacos做配置中心,data id配置为java包名时,启动时解析配置异常
Issue Description
Type: bug report
Describe what happened (or what feature you want)
https://github.com/nacos-group/nacos-spring-boot-project/issues/125
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
Tell us your environment
Anything else we need to know?
因为NacosUtils.readTypeFromDataId()
的优先级 比 properties.type().getType()
高,但是如果优先properties.type().getType()
,因为 ConfigType存在默认值 ConfigType.PROPERTIES
,data id文件后缀的逻辑就不存在,这样的逻辑是否正确?不太明白是否需要readTypeFromDataId的逻辑
https://github.com/nacos-group/nacos-spring-project/issues/201
https://github.com/nacos-group/nacos-spring-project/issues/202