异常: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注解加载指定的配置文件