Mybatis日志管理
pom.xml增加依赖
在resources下新增logback.xml文件
动态SQL
实体的映射文件.xml
<select id="dynamicSQL">dynamicSQL动态SQL的意思
<if test="categoryID !=null">test是固定搭配
调用
MyBatis二级缓存
二级缓存运行规则
使用
具体属性说明
多表级联查询
1对多
collection标签
多对1
association标签
pom.xml增加依赖
在resources下新增logback.xml文件
实体的映射文件.xml
<select id="dynamicSQL">dynamicSQL动态SQL的意思
<if test="categoryID !=null">test是固定搭配
调用
二级缓存运行规则
使用
1对多
collection标签
association标签
本文标题:2020-04-03Mybatis(2)
本文链接:https://www.haomeiwen.com/subject/ctahphtx.html
网友评论