1 // STL(标准模板库),由三大部分组成:容器,算法,迭代器 2 3 4 // STL六大组件:container(容器),algorthm(算法),iterator(迭代器) 5 // function object(仿函数),adaptor(适配器),allocator(空间适配器) 6 ...
分类:
其他好文 时间:
2020-01-27 18:54:01
阅读次数:
71
众所周知,现在最流行的三大框架就是Spring、Spring MVC和Mybatis。使用Spring,主要是方便了普通的程序员进行快速开发。 控制反转(IOC,Inversion Of Controll) 控制反转指的是对象创建责任的反转。原本我们需要创建一个对象必须要手动去new一个,那么在类中 ...
分类:
编程语言 时间:
2020-01-27 11:05:58
阅读次数:
80
开源项目相关的各种许可证 LicenseLicense keyword Academic Free License v3.0 afl-3.0 Apache license 2.0 apache-2.0 Artistic license 2.0 artistic-2.0 Boost Software ...
分类:
其他好文 时间:
2020-01-26 23:49:21
阅读次数:
268
一、使用selectKey标签 <insert id="addLoginLog" parameterType="map" > <selectKey keyProperty="id" resultType="int" order="BEFORE"> select nvl(max(id),0)+1 fr ...
分类:
数据库 时间:
2020-01-26 17:32:00
阅读次数:
169
<sql id="insertColumn"> last_name,gender,email </sql> <insert id=""> insert into tbl_employee( <include refid="insertColumn"> ) values(#{lastName},#{g ...
分类:
数据库 时间:
2020-01-21 23:29:49
阅读次数:
108
<select id="" resultType=""> select * from tbl_employee where last_name like #{lastName} </select> 一般我们进行模糊查询时,都会在java端输入: List<Employee> employees = ...
分类:
数据库 时间:
2020-01-21 23:22:19
阅读次数:
207
Haproxy 快速指南快速开始配置 haproxy安装 haproxy yum -y install haproxy 配置 haproxy vi /etc/haproxy/haproxy.cfg global log 127.0.0.1 local0 chroot /var/lib/haproxy ...
分类:
其他好文 时间:
2020-01-21 18:05:27
阅读次数:
72
通过阅读本文你可以更好的理解两个知识点: 1.#{}与${}在实际项目中的使用,避免在项目中使用不当造成不可预知的Bug; 2.MySQL中in里面如果是字符串的话,为什么只取第一个对应的数据,eg: in (“5,6,7”); 快过年了,项目决定年后上线,在修Bug阶段,在Bug解决后开始当水手划 ...
分类:
数据库 时间:
2020-01-20 12:58:17
阅读次数:
234
连接数据库 1. 按下图 ,点击view 选择tool windows 选择database并点击 2. 弹出Database窗口 3. 弹出DataSources and Drivers窗口 分别填写画圈的方框。 host 写ip地址 Database 写数据库名称 user 写账号 Passwo ...
分类:
数据库 时间:
2020-01-19 12:50:49
阅读次数:
84
我们都知道,MyBatis解析结果会保存成Configuration对象。其中解析过程主要分以下两个部分: ①主配置文件解析(enviroment); ②mapper映射文件解析。 本文主要以图文形式表示第二步中的SqlNode解析原理,如下奉上: ...
分类:
数据库 时间:
2020-01-16 00:54:22
阅读次数:
148