mybatis系列之#{} 和 ${} 区别

1、#{} 和 ${} 区别 参数设置不一样的格式,而后根据打印日志进行区别java 1.1 使用#{} 、${} 查看打印日志 <select id="getStudentByIdAndName" resultType="com.study.entity.Student"> select * from tb_student where id = ${id} and name = #{nam
相关文章
相关标签/搜索