摘要:
我敲好了分步查询的相关代码,如下: public interface DepartmentMapper { public Department getDaptById(Integer id); } <mapper namespace="com.fenga.mybatis.dao.Department 阅读全文
posted @ 2021-01-30 22:18
金玉良猿
阅读(234)
评论(0)
推荐(0)
摘要:
${}和#{}对比: 共同点:都可以获取map中的值或者pojo对象的属性值 区别: #{}:是以预编译的形式,将参数设置到sql语句中;PreparedStatement;防止sql注入 ${}:取出的值直接拼装在sql语句中;会有安全问题; 例: select * from tbl_employ 阅读全文
posted @ 2021-01-30 15:07
金玉良猿
阅读(196)
评论(0)
推荐(0)

浙公网安备 33010602011771号