异常:Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentExceptio - Go语言中文社区

异常:Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentExceptio


异常:Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentExceptio


报错如下:

Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder ‘security.noneSecurityPath’ in value “${security.noneSecurityPath}”

我用一个properties文件存配置信息,用于读取配置
在这里插入图片描述
错误是因为文件注入失败
解决办法:我在application中填在@PropertySource注解加载指定的配置文件
在这里插入图片描述

版权声明:本文来源CSDN,感谢博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/weixin_42869574/article/details/83584444
站方申明:本站部分内容来自社区用户分享,若涉及侵权,请联系站方删除。
  • 发表于 2020-03-07 15:23:09
  • 阅读 ( 2569 )
  • 分类:

0 条评论

请先 登录 后评论

官方社群

GO教程

猜你喜欢