SpringCloud-常见问题及解决方案
问题1:项目启动提示:IllegalArgumentException: Could not resolve placeholder 'pattern.dateformat' in value "${pattern.dateformat}"
问题1:文件名创建错误,文件名=bootstrap.yml 或 bootstrap.yaml【注意样式不一样】
问题2:Nacos配置文件创建有误
- debug以下方法:com.alibaba.cloud.nacos.client.NacosPropertySource#getSourceMap
- 查看入参:propertySources 是否为空,为空标识当前对应这个配置文件创建有问题,需重新创建