前期准备工作 数据库表 dp.properties driver=com.mysql.jdbc.Driver url=jdbc:mysql://localhost:3306/netshop?useSSL=true&useUnicode=true&characterEncoding=utf-8 use ...
分类:
其他好文 时间:
2021-06-23 16:40:43
阅读次数:
0
方法1: select * from current_user;<!--CRLF--> select * from current_user;<!--CRLF--> eg: kerrydb=> select * from current_user;<!--CRLF--> current_user < ...
分类:
数据库 时间:
2021-06-22 18:22:56
阅读次数:
0
什么是Mybatis 一款优秀的持久层框架,避免了JDBC底层繁杂的手动设置参数和获取结果集的过程。能够使用xml文件或注解形式来映射实体类和数据库内容。 Mybatis官方文档: http://www.mybatis.org/mybatis-3/zh/index.html Github上地址:ht ...
分类:
其他好文 时间:
2021-06-22 18:13:22
阅读次数:
0
Calico Overlay网络 在Calico Overlay网络中有两种模式可选(仅支持IPV4地址) IP-in-IP (使用BGP实现) Vxlan (不使用BGP实现) 两种模式均支持如下参数 Always: 永远进行 IPIP 封装(默认) CrossSubnet: 只在跨网段时才进行 ...
分类:
其他好文 时间:
2021-06-22 18:09:50
阅读次数:
0
代码自动补全:eclipse-Codota idea-Tabnine彩虹括号:idea-Rainbow Brackets批量生成代码:GenerateAllSetter快捷键提示与设置:Key Promoter X mybatis 映射:Free Mybatis plugin代码规范:Alibaba ...
分类:
其他好文 时间:
2021-06-22 18:07:49
阅读次数:
0
##小技巧 <!--设置经典数据库命名(CURRENT_TIME)为驼峰命名(currentTime)--> <setting name="mapUnderscoreToCamelCase" value="true"/> ##动态SQL 1.定义:增加了逻辑判断进行拼接的SQL语句 UserMapp ...
分类:
数据库 时间:
2021-06-22 17:59:39
阅读次数:
0
SpringMVC:整合SSM 要求:需要熟练掌握MySQL数据库,Spring,JavaWeb及MyBatis知识,简单的前端知识 一、数据库环境 创建一个存放书籍数据的数据库表 create database `ssmbuild`; use `ssmbuild`; create table `b ...
分类:
其他好文 时间:
2021-06-22 17:58:28
阅读次数:
0
##General English:8 ###Unit5 Purchasing a product ###Vocabulary for making a purchase Practice the vocabulary for buying things. Select a card and lis ...
分类:
其他好文 时间:
2021-06-22 17:55:40
阅读次数:
0
DML语言的学习:(数据操作) 数据操作语言: 插入:insert 方式一:经典的插入 /* 语法: insert into 表名(列名,...) values(值1,...); */ SELECT * FROM beauty; 插入的值的类型要与列的类型一致或兼容 INSERT INTO beau ...
分类:
数据库 时间:
2021-06-22 17:53:11
阅读次数:
0
前言之前使用jpa的时候一直感慨它的一些原来就有的方法很好用,一边不是很习惯这种不是xml写sql的方式,尤其在用习惯了mybatis之后,在使用jpa写动态查询的时候真的一头雾水,直到发现了**Specification** 这个神奇的东西,使用下来觉得他和mybatis plus的条件构造器很像 ...
分类:
其他好文 时间:
2021-06-22 17:52:52
阅读次数:
0