mybatis支持oracle和mysql吗
展开全部
mybatis 单个和批量插入mysql与oracle配置说明
1. mysql
[html] view plain copy
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.mysql.Mapper.BlackListMapper">
<resultMap id="BlackListMap"
type="cn.mysql.entity.BlackListDO">
<result property="id" column="id" />
<result property="uuid" column="uuid" />
<result property="type" column="tupe" />
<result property="value" column="value" />
<result property="deleteFlag" column="delete_flag" />
<result property="gmtCreate" column="gmt_create" />
<result property="gmtModified" column="gmt_modified" />
</resultMap>
<insert id="insert" parameterType="cn.mysql.entity.BlackListDO">
insert into
1. mysql
[html] view plain copy
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.mysql.Mapper.BlackListMapper">
<resultMap id="BlackListMap"
type="cn.mysql.entity.BlackListDO">
<result property="id" column="id" />
<result property="uuid" column="uuid" />
<result property="type" column="tupe" />
<result property="value" column="value" />
<result property="deleteFlag" column="delete_flag" />
<result property="gmtCreate" column="gmt_create" />
<result property="gmtModified" column="gmt_modified" />
</resultMap>
<insert id="insert" parameterType="cn.mysql.entity.BlackListDO">
insert into
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询