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

yaml配置问题 #40

Open
williamHappy opened this issue Sep 4, 2018 · 2 comments
Open

yaml配置问题 #40

williamHappy opened this issue Sep 4, 2018 · 2 comments

Comments

@williamHappy
Copy link

image
作者可以变量名可以和键相同吗,比如spring.datasource.username=${spring.datasource.username:root}
我这样会报错
Reason: Circular placeholder reference 'spring.datasource.username:root' in property definitions
不知道这是不是springboot版本的原因

@paascloud
Copy link
Owner

应该是环境变量没有配置或者配置中心配置错误导致,希望可以帮助到你

@williamHappy
Copy link
Author

换一个名字就行了,spring.datasource.username=${whome.spring.datasource.username:root}, 这样是ok的,不知道为啥<_>

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

2 participants