alibaba / nacos

an easy-to-use dynamic service discovery, configuration and service management platform for building cloud native applications.
https://nacos.io
Apache License 2.0
30.29k stars 12.84k forks source link

nacos-2.1.0 和springcloud集成使用shared-configs未能读取配置文件 #11594

Closed Poison02 closed 10 months ago

Poison02 commented 10 months ago

Describe the bug 在虚拟机上搭建nacos,版本如下:

image 使用的springboot版本为2.7.3,springcloud版本为2021.0.3,springcloudalibaba版本如下: image 在nacos中新建的配置文件如下: image 在bootstrap.yml中配置如下: image image 在 shared-mybatis.yaml中书写关于数据库相关的配置文件,考虑到多个服务会使用,因此使用shared-configs,但运行效果如下: image image 希望各位大佬能帮忙解决一下😭

Expected behavior A clear and concise description of what you expected to happen.

Actually behavior A clear and concise description of what you actually to happen.

How to Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See errors

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

KomachiSion commented 10 months ago

建议提交issue到spring cloud aibaba 社区