springcloud-eureka-feign-mybatis-seata 整合步奏 1.下载seata-server,修改seate-server配置 2.client端(你自己的项目)拷贝seate-server中的file.conf, registry.conf 加入自己项目 3.数据源代理 ...
分类:
编程语言 时间:
2021-06-11 19:16:48
阅读次数:
0
mybatis使用小案例 添加mybatis依赖 <!--mabatis依赖--> <dependency> <groupId>org.mybatis</groupId> <artifactId>mybatis</artifactId> <version>3.5.1</version> </depe ...
分类:
编程语言 时间:
2021-06-11 19:08:20
阅读次数:
0
低版本mybatis <foreach collection="mapInfo.entrySet()" item="item" index="index" separator=","> ${item.key} = VALUES ( #{item.value} ) </foreach> 高版本 <fo ...
分类:
其他好文 时间:
2021-06-11 19:06:24
阅读次数:
0
1.创建一个util.js文件 export default { getValueFromEvent:(e)=>{ return e.target.value.replace(/(^\s*)|(\s*$)/g, ''); } } 2.引入使用 getValueFromEvent={util.getV ...
分类:
其他好文 时间:
2021-06-11 18:53:28
阅读次数:
0
在实体类中添加@TableId注解: @Data public class DxApplication { @TableId(type = IdType.AUTO) private Long id; private String name; private Integer sort; } 在navi ...
分类:
其他好文 时间:
2021-06-11 18:35:34
阅读次数:
0
第一个Mybatis程序 思路:搭建环境—>导入Mybatis—>编写代码—>测试! 2.1、搭建环境 2.1.1、搭建数据库 CREATE TABLE `Users`( `id` INT(10) NOT NULL, `name` VARCHAR(30) NOT NULL, `pwd` VARCHA ...
分类:
其他好文 时间:
2021-06-10 18:40:34
阅读次数:
0
项目中碰到一个必须要使用动态SQL的地方, 想着在xml文件中进行一层一层的判断太麻烦了,也不好理解,要是能在Java代码中组织好SQL,进行查询操作 QueryWrapper<object> queryWrapper = new QueryWrapper<>(); queryWrapper.app ...
分类:
数据库 时间:
2021-06-10 18:38:20
阅读次数:
0
springboot整合mybatis框架 mybaits类似与hibernate框架,对数据库进行增删改查操作 mybatis半自动化的ORM框架 mybatis的优势:自己写sql更加灵活 过程:1.在navicat 新建test1表并添加数据 2.在pom.xml添加相关的依赖 包含父依赖,软 ...
分类:
其他好文 时间:
2021-06-08 23:36:30
阅读次数:
0
1)一级缓存 Mybatis的一级缓存是指SQLSession,一级缓存的作用域是SQlSession, Mabits默认开启一级缓存。 在同一个SqlSession中,执行相同的SQL查询时;第一次会去查询数据库,并写在缓存中,第二次会直接从缓存中取。 当执行SQL时候两次查询中间发生了增删改的操 ...
分类:
其他好文 时间:
2021-06-08 22:49:29
阅读次数:
0
1、添加mybatis依赖 <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.3.2</version> </ ...
分类:
编程语言 时间:
2021-06-08 22:31:11
阅读次数:
0