GodLikeZeal / zealsay_backend

Spring Boot 快速开发脚手架,以博客论坛为示例展示,后台主要使用Spring Boot,Spring Security,Mybatis-plus,redis token,前端使用Nuxt,Vue,Vuex,Vue-Router,Vuetify。
https://beta.zealsay.com
MIT License
69 stars 12 forks source link

配置完后为何启动报错呢 #91

Open TrendTech opened 3 years ago

TrendTech commented 3 years ago

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is java.lang.RuntimeException: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'authorizationTokenFilter' defined in file [D:\IDEA\zealsay_backend\target\classes\com\zeal\zealsay\security\filter\AuthorizationTokenFilter.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userDetailsService': Unsatisfied dependency expressed through field 'userService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userService': Unsatisfied dependency expressed through field 'userHelper'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userHelper': Unsatisfied dependency expressed through field 'systemConstants'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'systemConstants': Injection of autowired dependencies failed; nested exception is org.springframework.cache.Cache$ValueRetrievalException: Value for key 'qiniu.Bucket' could not be loaded using 'com.ulisesbocchio.jasyptspringboot.caching.CachingDelegateEncryptablePropertySource$$Lambda$309/000000000000000000@4eb668ae'

473975282 commented 2 years ago

你解决了吗,兄弟

GodLikeZeal commented 2 years ago

需要在application.yml中,将prod环境下所有带${}配置的修改成自己的配置。否则springboot在启动初始化的时候会报错。