Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Error building SqlSession. 解决办法 1、配置文件中有中文注释,去掉就好 2、将配置文件中的encoding="UTF-8"更改为encoding="UTF8"(去掉-)