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

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 条回答
写回答
取消 提交回答

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

相关电子书

更多
workshop专场-微服务专场-开发者动手实践营-微服务-使用Nacos进行服务的动态发现和流量调度 立即下载
Nacos 启航,发布第一个版本, 云原生时代助力用户微服务平台建设 立即下载
D2前端工程下一站 IDE 立即下载