mybatis-spring-boot-starter 版本和mybatis版本不兼容。前者依赖已经包含后者依赖,俩者互相打架,删除第二个依赖即可
有这样报错同理试一试
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.mybatis.spring.boot.autoconfigure.MybatisProperties$CoreConfiguration.applyTo(MybatisProperties.java:688)
The following method did not exist:
'void org.apache.ibatis.session.Configuration.setArgNameBasedConstructorAutoMapping(boolean)'