随笔分类 - mybatis
摘要:在用dubbo跨项目调度service时出现如下错误: 错误原因:pojo没有实现序列化 解决方法:在pojo实现序列化接口即可
阅读全文
摘要:项目中使用mybatis的分页插件pagehelper出现下面的警告 出现上面的警告,并不影响程序的运行。但是毕竟看着比较闹心。 使用debug进行代码根据发现,执行的过程中使用到了pagehelper插件中的一个叫做Page类。 Page类的源码如下: 分析发现:出现上面的警告的原因是因为序列化和
阅读全文
摘要:1 Invalid bound statement 1 org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cn.e3mall.search.mapper.ItemMapper.getIte
阅读全文
摘要:需求:整合springmvc和mybatis 整合的目标是:控制层采用springmvc,持久层使用mybatis 整合思想 dao层: 1、SqlMapConfig.xml.空文件即可。但是需要头文件。使用逆向工程的时候可以不配置别名。 2、applicationContext.xml 1)数据库
阅读全文
摘要:1整合思路 1、SqlSessionFactory对象应该放到spring容器中作为单例存在。 2、传统dao的开发方式中,应该从spring容器中获得sqlsession对象。 3、Mapper代理形式中,应该从spring容器中直接获得mapper的代理对象。 4、数据库的连接以及数据库连接池事
阅读全文
摘要:版本一 版本二 bos 版本三 Mybatis-Spring
阅读全文
摘要:SqlMapConfig.xml mapper.xml映射文件 数据库database.properties 这个主要是给properties标签使用的 Mapper动态代理方式的映射文件 Mapper接口开发需要遵循以下规范: 1、 Mapper.xml文件中的namespace与mapper接口
阅读全文
- 关于dubbo调度时出现Request processing failed; nested exception is com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method insertTestTb in the service cn.cuibusi.core.service.TestTbService.的解决办法
- 警告: Hessian/Burlap: 'com.github.pagehelper.Page' is an unknown class in WebappClassLoader
- MyBatis异常总结
- springmvc整合mybatis详细教程
- MyBatis整合Spring详细教程
- 028-applicationContext.xml配置文件
- 027-MyBatis相关配置模板