如果你集成不了mybatis-plus的话建议使用mybatis的tk.mapper插件
一、首先移除mybatis
移除jar包、yml配置、@Configuration配置文件
二、mybatis-plus的配置
别忘了添加 mybatis-plus-extension和mybatis-plus-annotation 包
传送门: https://blog.csdn.net/qq_16946803/article/details/107753313
三、遇到 java.lang.IllegalStateException: Property 'configuration' and 'configLocation' can not specified
四、数据库中没有某个字段 Cause: java.sql.SQLSyntaxErrorException: Unknown column 'xxxxx' in 'field list'
mybatis-plus 配置成功