随笔分类 -  mybatis

摘要:1.Could not find resource(mybatis本身不支持通配符,是spring提供的ant匹配法) 2.ClassNotFoundException: org.I0Itec.zkclient.IZkStateListener(缺少zkclient) 3.NoClassDefFou 阅读全文
posted @ 2016-07-27 15:20 琅琊天 阅读(391) 评论(0) 推荐(0)
摘要:1.sql语句中给表名和字段加上`,导致异常:不进行分表策略,表不存在 阅读全文
posted @ 2016-07-26 15:55 琅琊天 阅读(163) 评论(0) 推荐(0)
摘要:一、Invalid bound statement 1.mapper.xml中namespaces错误(***) 2.方法不存在 3.方法返回值错误 二、Mapped Statements collection does not contain 1.namespaces错误 2.<property  阅读全文
posted @ 2016-05-19 20:45 琅琊天 阅读(122) 评论(0) 推荐(0)
摘要:1.如果mybatis的xml文件放在java文件夹下(idea不会编译src的java目录的xml文件),需要在pom.xml中加入以下代码: 2.mybatis的配置文件不要出现classpath 3.spring与mybatis整合关键配置 阅读全文
posted @ 2016-05-12 11:03 琅琊天 阅读(352) 评论(0) 推荐(0)
摘要:出自:http://kinglixing.blog.51cto.com/3421535/723870 定义一个实体类:Emp.java package com.lixing.scm.entity;public class Emp { private String id; private String 阅读全文
posted @ 2015-12-24 13:35 琅琊天 阅读(345) 评论(0) 推荐(0)
摘要:原因1.sqlSessionFactory1.原始dao开发:sqlSessionFactory的configLocation2.mapper开发:sqlSessionFactory的mapperLocations原因2.namespacexxxmapper.xml中mapper标签的namespa... 阅读全文
posted @ 2015-12-24 13:32 琅琊天 阅读(330) 评论(0) 推荐(0)