随笔分类 -  MyBatis

net.sf.jsqlparser.schema.Column.withColumnName(Ljava/lang/String;)Lnet/sf/jsqlparser/schema/Column;
摘要:https://blog.csdn.net/yuanzhugen/article/details/133648431 SpringBoot整合mybatis plus报错:net.sf.jsqlparser.schema.Column, is available from the following 阅读全文

posted @ 2024-05-19 17:13 四海骄阳 阅读(365) 评论(0) 推荐(0) 编辑

Mybatis使用cache-ref需注意的问题
摘要:https://blog.csdn.net/Ewan_/article/details/129865974 1.在MapperXML中使用<cache-ref>标签 UserCacheMapperXML需要有<cache>标签 ,如果没有则会爆 Exception in thread "main" 阅读全文

posted @ 2024-05-14 09:46 四海骄阳 阅读(124) 评论(0) 推荐(0) 编辑

springboot-mybaits-plus
摘要:1、mybatis.plus,mybatis日志配置 mybatis.plus.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl mybatis.configuration.log-impl=org.apache.i 阅读全文

posted @ 2023-06-13 08:49 四海骄阳 阅读(9) 评论(0) 推荐(0) 编辑

mybatis 调用 oracle 带包存储过程(有out参数)
摘要:https://blog.csdn.net/u010925982/article/details/102958001 1.先写xml映射文件 <select id="call" parameterType="java.util.HashMap" statementType="CALLABLE" re 阅读全文

posted @ 2023-04-21 09:45 四海骄阳 阅读(227) 评论(0) 推荐(0) 编辑

ibatis 结果集 resultMap不匹配
摘要:ibatis 检索结果集跟 resultMap里面不匹配时,有两种情况 1,检索结果集比 resultMap里面定义的列多,这时程序正常执行没有问题 2, resultMap里面定义的列比检索结果集多,这时程序会跑NoFind异常 转载于:https://www.cnblogs.com/lckblo 阅读全文

posted @ 2023-01-11 14:37 四海骄阳 阅读(33) 评论(0) 推荐(0) 编辑

mybatis-generator 修改表结构后实体不更新问题处理记录
摘要:https://zhuanlan.zhihu.com/p/394327034 https://www.jb51.net/article/152187.htm 在构造文件中,这里是generatorConfig.xml添加连接数据库参数 nullCatalogMeansCurrent=true <jd 阅读全文

posted @ 2022-05-24 08:51 四海骄阳 阅读(431) 评论(0) 推荐(0) 编辑

Sql语句汇总
摘要:1、存在至少一个语句 SELECT * FROM t_b_drugstore_drugWHERE drugstore_id IN ('百姓1', '百姓2')AND is_shelves = 1AND CHARINDEX(trade_drug_id, '药品1,药品2') > 0; 阅读全文

posted @ 2021-04-01 10:29 四海骄阳 阅读(78) 评论(0) 推荐(0) 编辑

Mybatis设置sql超时时间
摘要:开始搭建项目框架的时候,忽略了sql执行超时时间的问题. 原本使用.net开发是,默认的超时时间是30s,这个时间一般一般sql是用不到的,但也不排除一些比较复杂或数据量较大的sql. 而java中,如果不指定,默认超时时间是不做限制的,默认值为0. 由于我们的项目采用Mybatis进行数据库操作, 阅读全文

posted @ 2018-03-19 14:06 四海骄阳 阅读(8007) 评论(0) 推荐(0) 编辑

浅谈 Mybatis中的 ${ } 和 #{ }的区别
摘要:好了,真正做开发也差不多一年了。一直都是看别人的博客,自己懒得写,而且也不会写博客,今天就开始慢慢的练习一下写博客吧。前段时间刚好在公司遇到这样的问题。 一、举例说明 一般情况下,我们都不会注意到这里面有什么不一样的地方。因为这些sql都可以达到我们的目的,去查询名字叫dato的用户。 二、区别 动 阅读全文

posted @ 2018-01-28 18:40 四海骄阳 阅读(178) 评论(0) 推荐(0) 编辑

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8
点击右上角即可分享
微信分享提示

喜欢请打赏

扫描二维码打赏

了解更多