mybatis系列之#{} 和 ${} 區別

1、#{} 和 ${} 區別 參數設置不一樣的格式,而後根據打印日誌進行區別java 1.1 使用#{} 、${} 查看打印日誌 <select id="getStudentByIdAndName" resultType="com.study.entity.Student"> select * from tb_student where id = ${id} and name = #{nam
相關文章
相關標籤/搜索