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

模块中使用@Value("${app.name}")注入失败 #130

Open
Today0219 opened this issue Apr 26, 2020 · 0 comments
Open

模块中使用@Value("${app.name}")注入失败 #130

Today0219 opened this issue Apr 26, 2020 · 0 comments

Comments

@Today0219
Copy link

Your question

模块中使用@value("${app.name}")注入参数失败,这个大家是怎么处理的。我现在是打算一个服务模块一个配置文件,用一个GlobalConfig去维护这些配置
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'globalConfig': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'app.name' in value "${app.name}"
...

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