Mybatis最拿得出手的功能之一 SpringBoot整合Mybatis-Plus 实战之动态SQL
MyBatis的动态SQL是最令人喜欢的功能在了解 动态SQL之前,你首先得知道一个表达式 OGNL,这个是基础! 面试常问问题 : Mybatis 中$与#的区别? #是将传入的值当做字符串的形式,select id,name,age from test where id =#{id}, 当把id值传入到后台的时候,就相当于 select id,name,age from test where id =‘1’. ""是将传入的数据直接显示生成sql语句,select .




