Skip to content
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

SpringBoot集成disconf首次启动配置未及时加载问题解决 #427

Open
bingo906 opened this issue May 8, 2021 · 0 comments
Open

Comments

@bingo906
Copy link

bingo906 commented May 8, 2021

背景:SpringBoot集成disconf,托管多数据源数据库、redis等连接信息。首次启动,拉取了相关配置文件,但是未及时注入到Spring,到时创建数据库连接时报错,spring.datasource.url 找不到。看了一圈Issues没有看到确切的解决方案。
给大家一个参考:启动类run方法执行前,创建disconf ioc容器对象
微信图片_20210508232951

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant