-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After upgrading from 2023.0.1.2
to 2023.0.1.3
, my project fails to start
#3881
Comments
2023.0.1.2
to 2023.0.1.3
, the project cannot start2023.0.1.2
to 2023.0.1.3
, the project fails to start
2023.0.1.2
to 2023.0.1.3
, the project fails to start2023.0.1.2
to 2023.0.1.3
, my project fails to start
感觉不像是 srping cloud alibaba 的问题,sca 没有和数据库相关的代码部分。 可以看看最新的 spring boot 版本和用的 orm 框架是不是兼容。或者能提供一个复现的最简例子,我们本地复现看看 |
这个是例子: |
把 application.yml 改为 bootstrap.yml |
我也碰到同样问题,在创建数据库DataSource时,读取不到nacos的数据库配置信息。 |
可以临时改成 Import 方式,就可以用了。见:#3882 |
在 Maven 仓库发现有 |
把 spring:
application:
name: xxxxxx
cloud:
nacos:
config:
file-extension: yml
server-addr: x.x.x.x:xxxx
username: xxxx
password: xxxx
config:
import:
- nacos:${spring.application.name}?refreshEnabled=true 确实就正常了。 以后版本, 这个配置项 |
我试了 2023.0.3.2 版本,问题应该解决了,至少在我本地不使用 import 方式也可以运行了。但是,还有其它问题,见 #3919 有说法是这样的,似乎以后就只支持 import 方式,有 SCA 的 Comitter 是这样说的。但是感觉现在还不明确,官网文档相关内容也还是各种方式都支持。 |
文档没有来得及更新,后面官网会改成 import 引入得方式 |
是的,这个是现在社区主推的一个配置方式,之前的老版本配置不建议用了 |
This issue has been open 30 days with no activity. This will be closed in 7 days. |
关键之前的配置不生效了,根本就不兼容之前的方式了 |
Framework versions
3.3.5
2023.0.3
2023.0.1.2
->2023.0.1.3
Configuration in
bootstrap.yml
Configuration of DataSource in Nacos:
Error Message
2023.0.1.2
to2023.0.1.3
, my project fails to start with the following errors:2023.0.1.2
, it immediately works ok.The text was updated successfully, but these errors were encountered: