今天就跟大家聊聊有關(guān)如何把Mybatis遷移到Mybatis-Plus中,可能很多人都不太了解,為了讓大家更加了解,小編給大家總結(jié)了以下內(nèi)容,希望大家根據(jù)這篇文章可以有所收獲。
由于原來項(xiàng)目中已有很多功能和包,想遷移到Mybatis-Plus,舊的還是繼續(xù)用 Mybatis和PageHelper,新的準(zhǔn)備全部用Mybatis-Plus。遷移遇到了各種錯誤,記錄一下,特別是這個錯誤:mybatis-plus org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):,花了差不多一天時間,都差點(diǎn)準(zhǔn)備撤子模塊了,將舊的一個模塊,新的一個模塊。
一、Mybatis-Plus依賴
后面還準(zhǔn)備新建對象,把代碼生成器也加進(jìn)來了。
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}