post_img

07-批处理

摘要

批处理 xml方式 批处理方式无法执行回写操作 <insert id=”batchInsert” parameterTy …

post_img

06-动态SQL

摘要

动态SQL xml方式 <select id=”dynamicSQL” parameterType=”java.util …

post_img

03-SQL参数映射

摘要

SQL参数映射 xml方式 <!– parameterType属性用于限制接收参数类型,并且只能有一个paramete …

post_img

02-使用方式

摘要

使用方式 创建MyBatis全局配置文件,一般命名为mybatis-config.xml,填写以下配置信息 <?xml …

post_img

01-获取MyBatis

摘要

获取MyBatis 将下面的依赖代码加入pom.xml文件中,也可从官方Github获取jar包导入,同时也要讲数据库驱动引入 & …

post_img

06-Spring框架整合

摘要

Spring框架整合 整合MyBatis 需要使用到mybatis-spring整合包,已以及Spring和MyBatis(包括数 …

post_img

05-SpringMVC

摘要

SpringMVC Spring5.x要求tomcat版本至少是为8.5,一般使用Maven引入spring-webmvc就会将W …