随笔分类 - mybatis
摘要:一、一对一查询 <mapper namespace="com.finnlee.mapper.OrderMapper"> <resultMap id="orderMap" type="com.finnlee.pojo.Order"> <result column="uid" property="use
阅读全文
摘要:一、核心配置文件常用配置 1、properties标签:该标签可以加载外部的properties文件 <properties resource="jdbc.properties" /> 2.typeAliases标签:设置类型别名 <typeAliases> <typeAlias type="com
阅读全文
摘要:一、导入坐标 <!--mybatis 坐标 --> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.4.5</version> </dependency> <!--mysq
阅读全文