nacos-spring-project
nacos-spring-project copied to clipboard
ReadConfigTypeFromDataId maybe should set as false in NacosConfiguration(nacos-spring-webmvc-sample)
Issue Description
Type: bug report
Describe what happened (or what feature you want)
When I first start this project, It can't start success.
in the constructor of com.alibaba.nacos.spring.core.env.NacosPropertySource#NacosPropertySource
, it will check type, the dataId first-property-source-data-id
didn't contains suffix of it's type. It can't pass by the type check.
So I think in this sample project, maybe we should set readConfigTypeFromDataId = false
in @EnableNacos
or add suffix of dataId.