自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 收藏
  • 关注

原创 解决3 字节的 UTF-8 序列的字节 3 无效问题

问题描述 org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [spring-dao.xml] Offending resource: class path resource [applicationContext.xml]; nested excepti

2022-04-16 22:10:09 2006

原创 初学整合Spring和Mybatis时Caused by: java.lang.IllegalArgumentException: Mapped Statements collection报错

项目场景: 初学者整合Spring和Mybatis时可能出现的报错 问题描述 Caused by: java.lang.IllegalArgumentException: Mapped Statements collection 原因分析及解决方案: 初学整合Spring和Mybatis时,由于mapper既可以在Mybatis的核心配置文件中绑定,也可以在Spring的配置文件中绑定,初学尝试两种方法时可能会出现在两边同时绑定了一个mapper的情况,就会出现上述报错,只需要选择在一个配置文件中绑定

2022-04-13 22:13:41 681

原创 学习DI注入时遇见的一个Error creating bean with name ‘xxx‘ defined in class path resource [beans.xml]报错

问题描述 Error creating bean with name ‘xxx’ defined in class path resource [beans.xml]: Unsatisfied dependency expressed through constructor parameter 1: Ambiguous argument values for parameter of type [int] - did you specify the correct bean references as ar

2022-04-13 21:58:55 2193

原创 JSON乱码问题

项目场景: Spring MVC中,返回给页面的JSON格式数据中有中文的情况 问题描述 返回的数据在页面中显示会出现乱码的情况` 原本的中文字在页面当中变成了问号 解决方案: 方法一:在@RequestMapping注解中设置编码格式 @RequestMapping(value = "/jsonTest",produces = "application/json;charset=utf-8") 方法二(统一解决):在项目中Spring MVC的配置文件中加入以下配置 <!--JSON乱码问题配

2022-04-13 15:55:46 775

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除