![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis-plus
Time''
111
展开
-
IllegalStateException: Type handler was null on parameter mapping for property ‘__frch_item_0‘.
错误代码:Caused by: java.lang.IllegalStateException: Type handler was null on parameter mapping for property '__frch_item_0'. It was either not specified and/or could not be found for the javaType (com.x.x.x.x.entity.x) : jdbcType (null) combination业务描述原创 2022-03-26 15:48:04 · 4952 阅读 · 3 评论 -
mybatis puls 中@TableId的使用
这个注解表示表的主键 @TableId(value = "id",type = IdType.AUTO) private Integer id;接受两个参数value = 主键列名type = 主键类型可选类型:类型 解释AUTO 数据库自增IDNONE 数据库未设置主键类型(将会跟随全局)INPUT 用户输入ID(该类型可以通过自己注册自动填充插件进行填充)ID_WORKER 全局唯一ID (idWorker)UUID 全局唯一ID(UUID)...原创 2021-09-09 16:25:33 · 743 阅读 · 0 评论 -
java自关联id与pid - 循环递归查询子菜单或者下拉框的实现
1.service实现类代码courseTypes = baseMapper.selectForTreeData();2.mapper层//第1条:根据pid=0或pid=xxx查询出第1级课程分类列表 List<CourseType> selectForTreeData();3.mapper.xml代码<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//mybatis.or原创 2021-01-15 11:58:26 · 1019 阅读 · 0 评论 -
mybatis-plus 基础单表crud-增删改查
package cn.x.test;import cn.x.domain.Department;import cn.x.mapper.DepartmentMapper;import lombok.extern.slf4j.Slf4j;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.spri原创 2021-01-08 18:43:53 · 531 阅读 · 0 评论 -
mybatis-plus 查询view视图
package cn.x.test;import cn.x.domain.ViewDepartmentEmployee;import cn.x.mapper.ViewDepartmentEmployeeMapper;import org.junit.Test;import org.junit.runner.RunWith;import org.springframework.beans.factory.annotation.Autowired;import org.springframewor原创 2021-01-08 18:42:11 · 4803 阅读 · 5 评论 -
mybatis-plus 多条件查询
package cn.x.org;import cn.x.org.domain.Department;import cn.x.org.mapper.DepartmentMapper;import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;import lombok.extern.slf4j.Slf4j;import org.junit.Test;import org.junit.runner.RunWith;imp原创 2021-01-08 18:39:37 · 4709 阅读 · 0 评论