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