深入了解MyBatis参数
    
                
摘要:转载https://blog.csdn.net/isea533/article/details/44002219相信很多人可能都遇到过下面这些异常:"Parameter 'xxx' not found. Available parameters are [...]""...
        
阅读全文
                    posted @ 
2018-07-13 16:10 
2637282556
        
阅读(180) 
         
        推荐(0)     
                 
                
                
    MyBatis如何防止SQL注入
    
                
摘要:下面是MyBatis一个Dao配置 打印出执行的SQL语句 SELECT u.name FROM UserInfo u where 1=1 and u.UserID=? 这是因为MyBatis启用了预编译功能,在SQL执行前,会先将上面的SQL发送给数据...
        
阅读全文
                    posted @ 
2018-04-17 20:14 
2637282556
        
阅读(114) 
         
        推荐(0)     
                 
                
                
    mybaties,接口传入参数的各种情况
    
                
摘要:总纲: 无论你传的参数是什么样的,最后mybtis都会将你传入的转换为map的方式1 接口 /** * 通过userid,ParentID获取 List */ public List getMenus(String parID,Inte...
        
阅读全文
                    posted @ 
2017-09-20 11:24 
2637282556
        
阅读(158) 
         
        推荐(0)     
                 
                
                
    mybaties+oracle:插入数据,返回自增长的id
    
                
摘要:mybaties insert into Privilege PrivilegeID, ...
        
阅读全文
                    posted @ 
2017-08-20 12:04 
2637282556
        
阅读(237) 
         
        推荐(0)     
                 
                
                
    MyBatis+oracle 批量插入数据的一些问题
    
                
摘要:当mybaties执行到 insert into userPrivilegeTemp这里的时候,进程就卡死了, 后来我改为insert into userPrivilegeTemp(UserID,PrivilegeID)就不会卡了, 应该是mybati...
        
阅读全文
                    posted @ 
2017-08-08 17:48 
2637282556
        
阅读(177) 
         
        推荐(0)     
                 
                
                
    mybatis连接oracle,为什么要设置字段默认类型
    
                
摘要:·新增 oracle jdbc驱动 当这个值为null时,必须告诉它当前字段默认值的类型jdbcType=VARCHAR (mybatis定义),否则异常。异常 无效的列类型: 1111; nested exception is java.sql.SQLExcept...
        
阅读全文
                    posted @ 
2017-06-28 11:44 
2637282556
        
阅读(238) 
         
        推荐(0)