2017年4月5日

MyBatis笔记----Mybatis3.4.2与spring4整合:增删查改

摘要: 结构图 刚之前没什么区别,多了一个applicationContext.xml 包图 由于之前出了一点错误,有些包可能多加上了 数据库图 model User.java UserMapper.java xml UserMapper.xml mybatis-config.xml application 阅读全文

posted @ 2017-04-05 19:09 Honey_Badger 阅读(2066) 评论(0) 推荐(1)

MyBatis笔记----(2017年)最新的报错:Cannot find class [org.apache.commons.dbcp.BasicDataSource] for bean with name 'dataSource' defined in class path resource [com/ij34/mybatis/applicationContext.xml]; nested e

摘要: 我用的是 然而在dbcp2.1.1里找不到 所以改成这样 <bean id="dataSource" class="org.apache.commons.dbcp2.BasicDataSource"> 阅读全文

posted @ 2017-04-05 17:16 Honey_Badger 阅读(4543) 评论(0) 推荐(1)

MyBatis笔记----报错:Error creating bean with name 'sqlSessionFactory' defined in class path resource [com/ij34/mybatis/applicationContext.xml]: Invocation of init method failed; nested exception is org.sp

摘要: 将里面的resultType删掉 阅读全文

posted @ 2017-04-05 16:55 Honey_Badger 阅读(11211) 评论(0) 推荐(0)

MyBatis笔记----报错Exception in thread "main" org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.ij34.model.UserMapper.selectUser

摘要: 解决: 阅读全文

posted @ 2017-04-05 16:50 Honey_Badger 阅读(2020) 评论(0) 推荐(0)

导航

github