nacos-group / nacos-spring-project

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

Solve type error #283

Closed Oliverwqcwrw closed 2 years ago

Oliverwqcwrw commented 2 years ago

Please do not create a Pull Request without creating an issue first.

What is the purpose of the change

The project start failed

java.lang.UnsupportedOperationException: Parsing is not yet supported for this type profile : first-property-source-data-id com.alibaba.nacos.spring.util.ConfigParseUtils.toProperties(ConfigParseUtils.java:98) com.alibaba.nacos.spring.util.ConfigParseUtils.toProperties(ConfigParseUtils.java:115) com.alibaba.nacos.spring.util.NacosUtils.toProperties(NacosUtils.java:512) com.alibaba.nacos.spring.core.env.NacosPropertySource.(NacosPropertySource.java:63)

The purpose is to solve this problem, Return a default type when dataId don't contains suffix

Verifying this change

XXXX

Follow this checklist to help us incorporate your contribution quickly and easily: