【バグ解決】org.apache.ibatis.type.TypeException: The alias ‘xxxx‘ is already mapped to the value ‘xxx‘
1788 ワード
mework.beans.factory.BeanCreationException: Error creating bean with name 'appUserDao'
defined in file [D:\xxx\xx\xxx\target\classes\com\ai\ecs\ecop\app\dao\AppUserDao.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:\xxx\xxx\xxx\target\classes\META-INF\spring\spring-context.xml]:
Invocation of init method failed; nested exception is org.apache.ibatis.type.TypeException:
The alias 'xxx' is already mapped to the value '....’
MyBatisエイリアスが競合しています.クラス名が同じなので、パッケージパスが違ってもこのエラーを報告します.!!!繰り返し印刷されます.
DEBUG org.apache.ibatis.io.ResolverUtil Reader entry...
DEBUG org.apache.ibatis.io.ResolverUtil Find JAR URL...
DEBUG org.apache.ibatis.io.ResolverUtil Not a JAR:..