关于问题The fully qualified name of the bean's class, except if it serves only as a parent definition fo
来源:互联网 发布:steam淘宝 编辑:程序博客网 时间:2024/06/06 09:25
1.1、异常描述
Description Resource Path Location TypeClass 'org.springframework.http.converter.json.MappingJacksonHttpMessageConverter' not found [config set: testweba/web-context] spring-mvc.xml /testweba/src/main/resources line 13 Spring Beans Problem
1.2、原因分析
Spring3升级到Spring4时, 运行时出现找不到MappingJacksonHttpMessageConverter的情况
原因是Spring 3.x 和4.X处理JSON的一个类不一样,而这个东西又配置在xml文件中,所以编译时又无法发现
1.3 解决办法
spring3.x是org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
spring4.x是org.springframework.http.converter.json.MappingJackson2HttpMessageConverter
- 查找替换所有XML中名字
- 同时加入最新的FastJackson依赖
2.1 异常描述
Description Resource Path Location TypeBuild path is incomplete. Cannot find class file for com/fasterxml/jackson/core/JsonGenerator spring-mvc.xml /testweba/src/main/resources line 13 Spring AOP Problem
2.2 原因分析
Spring 4.x 需要依赖的相关FastJackson jar
2.3 解决办法
<dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-core</artifactId> <version>2.8.5</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.8.5</version> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-annotations</artifactId> <version>2.8.5</version> </dependency>'''
阅读全文
0 0
- 关于问题The fully qualified name of the bean's class, except if it serves only as a parent definition fo
- The fully qualified name of the bean's class, except if it serves only as a parent definition ...
- 在Spring中注册组件时报错:The fully qualified name of the bean's class, except if it serves only as a parent d
- 已解决:maven,SSM项目的spring-mvc.xm文件引用类爆红:The fully qualified name of the bean's class, except if it serv
- 关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
- 关于Apache2: Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 fo
- httpd: Could not reliably determine the server's fully qualified domain name, using 192.168.1.229 fo
- httpd: Could not determine the server's fully qualified domain name 问题的解决
- Its width is W and height is H. As a result, if the font size of characters is S then it can only sh
- Linux中启动Apache中的Could not reliably determine the server's fully qualified domain name问题
- httpd: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
- 解决httpd: Could not reliably determine the server's fully qualified domain name的方法
- “apache2: Could not reliably determine the server’s fully qualified domain name”的解法
- httpd: Could not reliably determine the server's fully qualified domain name
- httpd:httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1
- linux Could not reliably determine the server's fully qualified domain name
- httpd: Could not reliably determine the server's fully qualified domain name, using
- 解决httpd: Could not reliably determine the server's fully qualified domain name
- Linux 安装nginx 1.8.1 及配置
- Linux下编译动态库及使用
- django学习记录
- Android 解决启动白屏
- js模拟手机短信发送
- 关于问题The fully qualified name of the bean's class, except if it serves only as a parent definition fo
- codeblocks出现无法调试或断点失效问题解决办法
- elasticsearch设置refresh_interval-1的思考
- mysql 基础知识
- CentOS 7安装部署Rsync数据同步服务器
- iOS .ips(crash)崩溃报告文件分析
- 机器学习的框架(新手)
- 喂不饱的滴滴,也要撇开腾讯另立门户了
- kinect2.0开发环境