- 博客(3)
- 收藏
- 关注
原创 动态SQL常用标签(if、choose、where、when、choose)xml文件代码、接口BlogMapper.java代码、实体pojo
<?xml version="1.0" encoding="UTF-8" ?><!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Config 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"><mapper namespace="com.liang.dao.BlogMapper"> <insert id="addBlog".
2022-01-15 16:01:15 180
原创 Mybatis 一对多处理 StudentMapper.xml
StudentMapperpublic interface StudentMapper { //查询所有学生信息,以及对应的老师信息! public List<Student> getStudent(); // public List<Student> getStudent2();}TeacherMapperpublic interface TeacherMapper { @Select("select * fr.
2022-01-11 00:29:05 284
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人