【报错】Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.util.DefaultPrettyPrinter
- 把原来SSM项目里的jackson换成fastjson后,开始报错
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.core.util.DefaultPrettyPrinter
和
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.http.converte
将Spring项目中原本的Jackson库替换为Fastjson后,遇到`java.lang.ClassNotFoundException: com.fasterxml.jackson.core.util.DefaultPrettyPrinter`错误,同时报出`BeanCreationException`,由于原先配置的乱码过滤器是针对Jackson的,而Fastjson不适用,导致问题发生。解决方案是调整配置以适应Fastjson。
最低0.47元/天 解锁文章


被折叠的 条评论
为什么被折叠?



