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
本博主支持并坚持原创,本博客文章将以原创为主。