如何把Mybatis迁移到Mybatis-Plus中-创新互联
今天就跟大家聊聊有关如何把Mybatis迁移到Mybatis-Plus中,可能很多人都不太了解,为了让大家更加了解,小编给大家总结了以下内容,希望大家根据这篇文章可以有所收获。
由于原来项目中已有很多功能和包,想迁移到Mybatis-Plus,旧的还是继续用 Mybatis和PageHelper,新的准备全部用Mybatis-Plus。迁移遇到了各种错误,记录一下,特别是这个错误:mybatis-plus org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):,花了差不多一天时间,都差点准备撤子模块了,将旧的一个模块,新的一个模块。
一、Mybatis-Plus依赖
后面还准备新建对象,把代码生成器也加进来了。
com.baomidou mybatis-plus-boot-starter ${mybatis.plus.version} com.baomidou mybatis-plus-generator ${mybatis.plus.generator.version} org.apache.velocity velocity-engine-core ${velocity.engine.version}
新闻名称:如何把Mybatis迁移到Mybatis-Plus中-创新互联
文章网址:http://ybzwz.com/article/dipicd.html