nacos-group / nacos-spring-project

Nacos ECO Project for Spring Framework
https://nacos.io/
Apache License 2.0
756 stars 311 forks source link

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

Open chuntaojun opened 4 years ago

chuntaojun commented 4 years ago

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?

wangweizZZ commented 4 years ago

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

chuntaojun commented 4 years ago

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

chuntaojun commented 4 years ago

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