---
title: "XML fragments parsed from previous mappers already contains value for "
author: "dotjar"
date: "2018-06-02T19:36:07Z"
tags: []
categories: ["编程语言"]
slug: "xml-fragments-parsed-from-previous-mappers-already-contains-value-for"
draft: false
lastmod: "2018-06-02T19:39:33Z"
id: 2424157
url: "https://niewj.iteye.com/blog/2424157"
---

1\. ssm项目报错：

 

WARN  \[main]  DefaultListableBeanFactory:1479-- Bean creation exception on FactoryBean type check: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'eat10Ivs03CreditAntifraudVerifyResultMapper' defined in file \[\*\*\*\\Eat10Ivs03CreditAntifraudVerifyResultMapper.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file \[D:\\projects\\idea\_ngit\\datasource-dsthirdpart\\target\\classes\\spring\\spring-dao.xml]: Invocation of init method failed; nested exception is org.springframework.core.NestedIOException: Failed to parse mapping resource: 'file \[\*\*\*\\Eax01JxlIouMapper.xml]'; nested exception is java.lang.RuntimeException: Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: XML fragments parsed from previous mappers already contains value for \*\*\*.Eax01JxlIouMapper.Column\_List

 

 

**XML fragments parsed from previous mappers already contains value for \*\*\*.Eax01JxlIouMapper.Column\_List**

 

主要原因就在于 namespace， 检查mybatis的配置文件： Eax01JxlIouMapper.xml中跟别的xml中有相同的namespace， 导致此问题。