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

ReadConfigTypeFromDataId maybe should set as false in NacosConfiguration(nacos-spring-webmvc-sample)

Open horizonzy opened this issue 3 years ago • 0 comments

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.

horizonzy avatar Oct 22 '20 14:10 horizonzy