nacos-spring-project icon indicating copy to clipboard operation
nacos-spring-project copied to clipboard

使用nacos做配置中心,data id配置为java包名时,启动时解析配置异常

Open chuntaojun opened this issue 4 years ago • 3 comments

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?

chuntaojun avatar Apr 21 '20 14:04 chuntaojun

因为NacosUtils.readTypeFromDataId() 的优先级 比 properties.type().getType()高,但是如果优先properties.type().getType(),因为 ConfigType存在默认值 ConfigType.PROPERTIES,data id文件后缀的逻辑就不存在,这样的逻辑是否正确?不太明白是否需要readTypeFromDataId的逻辑

wangweizZZ avatar May 07 '20 03:05 wangweizZZ

https://github.com/nacos-group/nacos-spring-project/issues/201

chuntaojun avatar Jun 04 '20 10:06 chuntaojun

https://github.com/nacos-group/nacos-spring-project/issues/202

chuntaojun avatar Jun 04 '20 10:06 chuntaojun