您的位置:首页 > 运维架构 > Apache

com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效。

2018-01-06 22:08 701 查看
UnsatisfiedDependencyException: Error creating bean with name 'adminUserServiceImpl': Unsatisfied dependency expressed through field 'adminUserDAO'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'adminUserDAO' defined in file [E:\第三阶段\个人博客\ssm-blog-admin\target\ssm-blog-admin\WEB-INF\classes\com\ssm\blog\dao\AdminUserDAO.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in class path resource [spring-config.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException:
Failed to parse mapping resource: 'file [E:\第三阶段\个人博客\ssm-blog-admin\target\ssm-blog-admin\WEB-INF\classes\com\ssm\blog\dao\mapper\AdminUserMapper.xml]'; nested exception is org.apache.ibatis.builder.BuilderException: Error creating document instance. Cause:
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 3 字节的 UTF-8 序列的字节 2 无效。

解决方案:在使用idea时,mpper.xml文件最好不要加中文注释,如果真要注释的话, <![CDATA[ 要注释的内容 ]]> 。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐