nimeia / Dynamic-modify-mybatis-sql-

Dynamic modify mybatis sql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic modify mybatis sql

this demo show how to modify the insert and select sql in mybatis framework .It`s base the mybatis orm framework for example:

  • wheh mybatis exe the sql insert into city (name,state) values(#{name},#{state}) .
  • the plugin will edit the sql and add the appid,the modified sql may be like this
  • insert into city (name,state,appid) values(#{name},#{state},${appid})

About

Dynamic modify mybatis sql


Languages

Language:Java 100.0%