sofa-jarslink icon indicating copy to clipboard operation
sofa-jarslink copied to clipboard

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

Open Today0219 opened this issue 4 years ago • 0 comments

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}" ...

Today0219 avatar Apr 26 '20 10:04 Today0219