错误信息: 不满足依赖构造参数
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'fastJsonpResponseBodyAdvice' defined in URL [jar:file:xxx/FastJsonpResponseBodyAdvice.class]:
Unsatisfied dependency expressed through constructor parameter 0;
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type 'java.lang.String[]' available:
expected at least 1 bean which qualifies as autowire candidate.
Dependency annotations: {}
报错原因:依赖引入问题。
//原引包
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.28</version>
</dependency>
解决方法:更换包就好了
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.53</version>
</dependency>
若有问题欢迎大家与我互动交流,如果文章帮到了你,请点小手指。另外,我的博客文章会不定期更新,喜欢的朋友可以加一下关注。