开发者社区 > 云原生 > 微服务 > 正文

nacos作为配置中心,jar包部署服务,ide可以找到配置,jar包运行找不到,报错如下,怎么办?


APPLICATION FAILED TO START


Description:

Config data resource 'NacosConfigDataResource{properties=NacosConfigProperties{serverAddr='192.168.23.1:8848', encode='null', group='DEFAULT_GROUP', prefix='null', fileExtension='properties', timeout=5000, maxRetry='3', configLongPollTimeout='10000', configRetryTime='2000', enableRemoteSyncConfig=false, endpoint='null', namespace='421e99fc-7bcd-4003-bc48-bcfa20eac10f', accessKey='null', secretKey='null', ramRoleName='null', contextPath='null', clusterName='null', name='null'', shares=null, extensions=null, refreshEnabled=true}, optional=false, profiles=[Profiles@62150f9e active = '[]', default = '[default]', accepted = '[default]'], config=NacosItemConfig{group='DEFAULT_GROUP', dataId='CS-Base-Auth001.yaml', suffix='yaml', refreshEnabled=true, preference=null}}' via location 'nacos:CS-Base-Auth001.yaml' does not exist

Action:

Check that the value 'nacos:CS-Base-Auth001.yaml' at URL [file:application.yml] - 25:9 is correct, or prefix it with 'optional:'

15:59:49.547 [Thread-1] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient
15:59:49.547 [Thread-6] WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Start destroying Publisher
15:59:49.547 [Thread-6] WARN com.alibaba.nacos.common.notify.NotifyCenter - [NotifyCenter] Destruction of the end
15:59:49.547 [Thread-1] WARN com.alibaba.nacos.common.http.HttpClientBeanHolder - [HttpClientBeanHolder] Destruction of the end

展开
收起
游客75ujd4q2il6ea 2024-12-25 16:13:01 10 0
0 条回答
写回答
取消 提交回答

为微服务建设降本增效,为微服务落地保驾护航。

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载