springboot启动总是启动不起来UnsatisfiedDependencyException异常


采用debug模式启动总是停留在

点击后:

鼠标放在ex上:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'regionController': Unsatisfied dependency expressed through field 'aliConstants'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'propertyConstants': Injection of autowired dependencies failed; nested exception is java.lang.IllegalArgumentException: Could not resolve placeholder 'aliyun.endpoint' in value "${aliyun.endpoint}"

原因是aliConstants属性的注入失败导致的,其根本原因是我本地配置文件没有配置aliyun的相关信息,需要在local和dev的配置文件中进行相关配置

然后启动,OK

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM