![](https://img-blog.csdnimg.cn/20190918140213434.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Mybatis
#
ACTIM__
ACTIM
展开
-
MyBatis原理,Spring、SpringBoot整合MyBatis
1. MyBatis概述MyBatis 是支持定制化 SQL、存储过程以及高级映射的优秀的持久层框架。MyBatis 避免了几乎所有的 JDBC 代码和手动设置参数以及获取结果集。MyBatis 可以对配置和原生Map使用简单的 XML 或注解,将接口和 Java 的 POJOs(Plain Old Java Objects,普通的 Java对象)映射成数据库中的记录。2. MyBatis原...原创 2019-07-21 15:05:15 · 318 阅读 · 0 评论 -
【JDBC】PreparedStatement防止SQL注入的原理、MyBatis中#和$的区别
1. PreparedStatement防止SQL注入的原理众所周知,JDBC中可以使用PreparedStatement防止sql注入,那么PreparedStatement是如何防止sql注入呢?让我们先来看一下源码: /** * Set a parameter to a Java String value. The driver converts this to a SQL...原创 2019-07-20 11:29:56 · 389 阅读 · 0 评论 -
【转载收藏】MyBatis Generator系列(lfendo)
原博客:https://blog.csdn.net/u011781521/article/category/7169346MyBatis Generator系列(一)----MyBatis Generator简介MyBatis Generator系列(二)----自定义CommentGenerator实现中文注释MyBatis Generator系列(三)----修改源码实现中文注释MyB...转载 2019-07-22 08:38:37 · 119 阅读 · 0 评论