Java后端
·2024-03-08想问问,使用腾讯云的cos对象存储,报下面的错误是为啥?我用的固定密钥的方式。秘钥和regin都没错呀![困]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'uploadDownLoadFileController': Unsatisfied dependency expressed through field 'cosClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'getCosClient' defined in class path resource [com/makesimple/client/COSClentUtil.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.qcloud.cos.COSClient]: Factory method 'getCosClient' threw exception; nested exception is java.lang.IllegalArgumentException: Access key cannot be null.
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.23.jar:5.3.23]
1
0
分享
操作
评论
问答助学
相关内容
0个评论
全部评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
