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多环境配置文件场景,dataway与spring共享配置功能,不能随spring boot环境切换而切换 #96

Open
eatK opened this issue Apr 23, 2021 · 0 comments

Comments

@eatK
Copy link

eatK commented Apr 23, 2021

#1.application-prod.properties
#2.application-test.properties
#3.application.properties
Environment environment = appContext.getEnvironment();
Settings settings = environment.getSettings();
settings.getString("spring.datasource.url")//本应为文件1中的同名配置,实际是文件3中的

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