在原来的SpringBoot + MyBatis项目中整合MyBatis-Plus,结果原来MyBatis所使用的自定义SQL出现异常,提示org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)错误。
原因:application.properties配置文件存在问题,需要配置MyBatis-Plus。
mybatis-plus.mapper-locations=classpath:/mappers/*.xml mybatis-plus.type-aliases-package=com.example.csctp.bean