ssm配置fastjson,一运行就报BeanCreationException
*若价格不公道,可以让提问者在平台追加赏金哦,平台是您利益的保证
已完成
问题详情:分类: Java
只配了springmvc.xml和web.xml,一加json库,然后使用jackson的writerValueAsString方法和fastjson的方法,运行就出错,不加是正常的。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Cannot create inner bean 'com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter#0' of type [com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter] while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter] for bean with name 'com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter#0' defined in class path resource [springmvc.xml]; nested exception is java.lang.ClassNotFoundException: com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter': Cannot create inner bean 'com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter#0' of type [com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter] while setting bean property 'messageConverters' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter] for bean with name 'com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter#0' defined in class path resource [springmvc.xml]; nested exception is java.lang.ClassNotFoundException: com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter
*若价格不公道,可以让提问者在平台追加赏金哦,平台是您利益的保证。你觉得当前的价格如何呢,奉上您珍贵的一票吧
虚高0人次 适中0人次 偏低0人次
分享海报会更快解决你的问题哦!分享海报
此处可发布评论
评论(0)
暂无评论,快来写一下吧