ICode9

精准搜索请尝试: 精确搜索
  • MyBatis查询的意外问题 <if>标签 ==和=的区别2020-12-25 09:33:52

    MyBatis查询的意外问题 使用MyBatis的注解写sql,像往常一样加入条件查询,如下: "<if test=\"type!=null and type!=2\"> and (show_position=#{type,jdbcType=TINYINT} or show_position=2)</if>", "<if test=\"type!=null and type=1\"> ORDE

  • Spring系列——MybatisPlus2020-10-21 07:01:07

    1. 前言 以前是Mybatis XML配套的方式去写,而MybaitsPlus是Mybatis的增强版,抛去了XML文件内容。后者虽然减少了很多繁琐的SQL内容编写,但是同样的,对于复杂的SQL场景,类似流似的SQL生成还是没有XML写法直观。 2. 特性 无侵入:只做增强不做改变,引入它不会对现有工程产生影响,如丝般顺滑

  • mybatis(5) 深入了解MyBatis参数2019-05-04 09:52:41

    出自:https://my.oschina.net/flags/blog/381199 深入了解MyBatis参数 相信很多人可能都遇到过下面这些异常: “Parameter ‘xxx’ not found. Available parameters are […]” "Could not get property ‘xxx’ from xxxClass. Cause: “The expression ‘xxx’ evaluated

  • mybatis源码解析11---ParameterHandler解析2019-03-26 14:38:15

    ParameterHandler接口是参数处理器,位于mybatis包的org.apache.ibatis.executor.parameter下,源码如下: 1 public interface ParameterHandler {2 3 Object getParameterObject();//获取参数4 5 void setParameters(PreparedStatement ps)//设置参数6 throws SQLException;7 8 }  

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有