Mapped Statements collection already contains valu

Mapped Statements collection already contains value

原因是请求mybatis解析sql时产生的并发错误!

解决:

在初始化mybatis时加上这句:

SqlSessionFactory sqlSessionFactory = AppContextHelper.getBean(SqlSessionFactory.class);
sqlSessionFactory.getConfiguration().buildAllStatements();


你可能感兴趣的:(Mapped Statements collection already contains valu)