摘要: 1.编写分页插件配置类config: //Spring boot方式 @EnableTransactionManagement @Configuration @MapperScan("com.itheima.mapper") public class MyBatisPlusConfig { /** 阅读全文
posted @ 2020-04-14 14:39 会偷袭的猫 阅读(565) 评论(0) 推荐(0) 编辑
摘要: mybatis是如何防止SQL注入的 1、首先看一下下面两个sql语句的区别: <select id="selectByNameAndPassword" parameterType="java.util.Map" resultMap="BaseResultMap"> select id, usern 阅读全文
posted @ 2020-04-14 14:35 会偷袭的猫 阅读(1786) 评论(1) 推荐(0) 编辑