Error creating bean with name ‘sqlsessionfactory’ defined in class path resource…..

The unit test code is as follows:
after running, the console reports an error

Caused by: org.springframework.beans . factory.BeanCreationException : Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [ applicationContext.xml ]: Invocation of init method failed; nested exception is org.springframework.core .NestedIOException: Failed to parse mapping resource: ‘file [D:\eclipse2019_ jdk\2019xiangmu\television\target\classes\mapper\ AdminMapper.xml ]’; nested exception is org.apache.ibatis . builder.BuilderException : Error parsing Mapper XML. The XML location is ‘file [D:\eclipse2019_ jdk\2019xiangmu\television\target\classes\mapper\ AdminMapper.xml ]’. Cause: java.lang.IllegalArgumentException : Result Maps collection already contains value for com.syn.television . dao.AdminMapper.BaseResultMap

And my spring configuration file is

after searching on the Internet, I learned from it https://www.cnblogs.com/hfx123/p/9685721.html
After annotating , it runs successfully (I don’t quite understand the specific reasons now)

I also hope that the God passing by can give you your understanding.

Read More: