
----- MyBatis
OceanStar的学习笔记
这个作者很懒,什么都没留下…
展开
-
报错org.apache.ibatis.binding.BindingException: Parameter 'xxxxx' not found.
1.报错信息今天使用mybatis查询数据的时候,出现org.apache.ibatis.binding.BindingException: Parameter ‘username’ not found. Available parameters are [0, 1, param1, param2] 问题。org.apache.ibatis.binding.BindingException:...转载 2020-01-08 15:29:03 · 4729 阅读 · 0 评论 -
MySql8: The server time zone value '?й???׼ʱ?' is unrecognized or represents more than one
JDBC访问MySql异常Exception in thread “main” org.apache.ibatis.exceptions.PersistenceException:Error querying database. Cause: java.sql.SQLException: The server time zone value ‘?й???׼ʱ?’ is unrecogn...转载 2019-12-15 18:22:34 · 973 阅读 · 0 评论 -
mybatis错误:Could not create connection to database server.
org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database s...转载 2019-11-12 14:38:36 · 1046 阅读 · 0 评论 -
MyBatis的动态Sql语句
文章目录MyBatis的动态Sql语句1、< if >2、< where >3、< foreach >4、Sql重用MyBatis的动态Sql语句1、< if >根据实体类的不同取值,使用不同的SQL够来进行查询。持久层Dao接口 /* * 根据用户信息,查询用户表 * @param userName ...转载 2019-10-11 13:24:59 · 230 阅读 · 0 评论 -
mybatis的连接池与事务管理
文章目录1、MyBatis的连接池技术分类2、MyBatis的事务控制MyBatis中事务提交的方式MyBatis中事务提交的方式1、MyBatis的连接池技术在Mybatsi的SqlMapConfig.xml配置文件中,通过< dataSource type=“pooled”>来实现分类UNPOOLED 不适用连接池的数据源POOLED 使用连接池的数据源JND...转载 2019-10-27 13:57:20 · 304 阅读 · 0 评论 -
mybatis进行CRUD操作(基于xml)
文章目录1、mybatis的概述2、mybatis的入门3、使用mybatis进行基本的CRUD操作4、MyBatis与JDBC编程的比较1、mybatis的概述mybatis是一个持久层框架,用java编写的 它封装了jdbc操作的很多细节,使得开发者只需要关注sql语句本身,而无需关注注册驱动,创建连接等繁杂过程。 它使用了orm思想实现类结果集封装。...转载 2019-10-27 10:56:40 · 511 阅读 · 0 评论