![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
文章平均质量分 54
躁动的青年
招女朋友
展开
-
MyBatis-Plus 官网文档打开变成空白页
Mybatis-Plus 官网文档打开变成空白页,正常的官网原创 2024-04-22 17:54:37 · 572 阅读 · 3 评论 -
springboot 2.0 集成mybatis,mybatis-generator,pagehelper
springboot 2.0 集成mybatis,通用Mapper tk.mybatis, mybatis-generator,pagehelperhttps://blog.csdn.net/haveqing/article/details/86621768开发工具ideaspringboot 2.0.8一、pom.xml<?xml version="1.0" enco...原创 2019-01-22 20:09:59 · 499 阅读 · 0 评论 -
springboot 2.0 mybatis mapper-locations扫描多个路径
mapper-locations扫描多个路径,中间以,分开,如果mapper.xml在源码包下,配置成classpath*开头比较好使mybatis: mapper-locations: classpath*:mapper/*.xml,classpath*:com/urthink/upfs/**/*Mapper.xml type-aliases-package: com.urth...原创 2019-01-24 12:00:26 · 35539 阅读 · 2 评论 -
springboot 2.0 集成mybatis,通用Mapper tk.mybatis, mybatis-generator,pagehelper
开发工具ideaspringboot 2.0.8一、文件结构很多人把mapper.xml放到resources下,我个人还是喜欢放到源码包下,二、POM.xml<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xs...原创 2019-01-24 11:33:46 · 1850 阅读 · 0 评论 -
转:MyBatis Generator 详解
MyBatis Generator 详解http://blog.csdn.net/isea533/article/details/42102297MyBatis Generator详解http://git.oschina.net/free/Mybatis_Utils/blob/master/MybatisGeneator/MybatisGeneator.mdM...原创 2020-05-15 08:25:07 · 71 阅读 · 0 评论 -
遍历request.getParameterMap()变成普通map供mybatis使用
request.getParameterMap()的返回类型是Map类型的对象,也就是符合key-value的对应关系,但这里要注 意的是,value的类型是String[],而不是String. 得到jsp页面提交的参数很容易,但通过它可以将request中的参数和值变成一个map,以下是将得到的参数和值 打印出来,形成的map结构:map(key,value[]),即:key是String...原创 2020-05-15 08:19:24 · 260 阅读 · 0 评论 -
mybatis打印sql
mybatis默认使用slf4j打印日志,第一步项目中要加入slf4j-log4j12-1.7.12.jar,附件中有下载我的项目中已引用log4j-1.2.17.jar和slf4j-api-1.7.12.jar用了maven的引用方法,主要是下面那个,上面的可以没有<!-- log4j --><dependency> <g...原创 2020-05-15 08:19:20 · 77 阅读 · 0 评论 -
mybatis like查询%
--all 用$不能防sql注入select * from user where name like '%${name}%'--mysql,oracle (db2的concat函数只支持2个参数)select * from user where name like concat('%',#{name},'%') --oracle,db2select * fro...原创 2020-05-15 08:14:37 · 66 阅读 · 0 评论 -
spring3+mybatis3集成property-placeholder失效
异常:java.lang.ClassNotFoundException: ${jdbc.driverClassName}因为初始化MapperScannerConfigurer的sqlSessionFactory时PropertyPlaceholderConfigurer还没有将properties的参数替换官方推荐方法:把sqlSessionFactory-ref...原创 2020-05-15 08:12:18 · 69 阅读 · 0 评论 -
mybatis 3.x最新版下载,最新在线中文文档,maven地址
最新版,历史版下载地址 jar包,源码包https://github.com/mybatis/mybatis-3/https://github.com/mybatis/mybatis-3/releases最新版,历史版下载地址 jar包,源码包http://repo1.maven.org/maven2/org/mybatis/mybatis/另一个http:...原创 2020-03-27 23:01:38 · 145 阅读 · 0 评论