当前位置:
首页 >
行业知识 >
使用Nacos拉取配置时报错: Could not resolve placeholder ‘pattern.dateformat’ in value “${pattern.dateformat}”
行业知识
使用Nacos拉取配置时报错: Could not resolve placeholder ‘pattern.dateformat’ in value “${pattern.dateformat}”
2026-11-09 05:56:09
来源:互联网转载
使���Nacos配置管理时报错信息:
Error creating bean with name ‘userController’: Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘pattern.dateformat’ in value “${pattern.dateformat}”
查看Nacos配置列表发现:
问题:Nacos的配置文件不在public命名空间下。
解决方法:在bootstrap.yaml中增加配置namespace,注明命名空间。
上一篇:日立mca电梯怎么连接服务器?