- 博客(14)
- 收藏
- 关注
转载 MD5
import java.security.MessageDigest;public class MD5 { private final static String[] hexDigits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
2018-09-18 14:59:10
226
原创 mapper
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE mapper PUBLIC "-//ibatis.apache.org//DTD Mapper 3.0//EN" "http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd"> <mapper namespace=&qu
2018-09-18 13:48:52
269
原创 druid连接池
spring: datasource: druid: # 数据库访问配置, 使用druid数据源 type: com.alibaba.druid.pool.DruidDataSource driver-class-name: com.mysql.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/...
2018-09-17 11:07:12
256
原创 nginx
upstream ctlfin_club { server 172.21.0.4:8080; } upstream carkey_club { server 172.21.16.15:5201; } server { listen 80 ; listen [:...
2018-09-11 11:33:17
214
转载 TCP3次握手,4次挥手
TCP握手协议 在TCP/IP协议中,TCP协议提供可靠的连接服务,采用三次握手建立一个连接.第一次握手:建立连接时,客户端发送syn包(syn=j)到服务器,并进入SYN_SEND状态,等待服务器确认; SYN:同步序列编号(Synchronize Sequence Numbers)第二次握手:服务器收到syn包,必须确认客户的SYN(ack=j+1),同时自己也发送一个SYN包(sy...
2018-09-08 13:50:24
180
原创 笔记
模糊查询xml<select id="selectAll" resultMap="BaseResultMap" parameterType="java.lang.String"> <!-- select * from t_upgrade_log where uuid like concat('%',#{searchfilters},'%') -->...
2018-09-05 15:21:29
201
原创 centos7安装Nginx
1、官网下载安装包 http://nginx.org/en/download.html,选择适合Linux的版本,选择最稳定的版本,下载到本地后用winscp上传到服务器切换到/usr/local目录、解压tar -zxvf nginx-1.11.5.tar.gzcd /usr/local/nginx-1.11.5/执行# ./configure 该操作会检测当...
2018-08-29 14:18:34
207
原创 SpringBoot中使用h5页面
需要添加的依赖<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId></dependency>热部署...
2018-08-21 19:43:53
5210
转载 Springboot中使用redis
pom.xml添加依赖<!--redis依赖--> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-redis</artifa...
2018-08-21 19:43:21
256
原创 SpringBoot中使用pagehelper分页
1.pom.xml中添加依赖 <dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper</artifactId> <version>3.7.5&l...
2018-07-31 10:33:22
701
转载 Shiro笔记
Apache Shiro 的三大核心组件 Apache Shiro 核心通过 Filter 来实现,就好像SpringMvc 通过DispachServlet 来主控制一样。 既然是使用 Filter 一般也就能猜到,是通过URL规则来进行过滤和权限校验,所以我们需要定义一系列关于URL的规则和访问权限。另外我们可以通过Shiro 提供的会话管理来获取Session中的信息。Shiro 也提...
2018-07-19 15:02:52
273
原创 SpringBoot引用外部js、css文件
@Configurationpublic class WebConfig extends WebMvcConfigurationSupport { @Override public void addResourceHandlers(ResourceHandlerRegistry registry) { //将所有/static/** 访问都映射到classpa...
2018-07-18 11:10:19
1710
转载 Redis
lpush 在key 对应 list的头部添加字符串元素 INCR命令用于将键的整数值递增1 Lrange 返回列表中指定区间内的元素,区间以偏移量 START 和 END 指定。 其中 0 表示列表的第一个元素, 1 表示列表的第二个元素 listSadd 命令将一个或多个成员元素加入到集合中 smembers查看集合 set对于集合的使用,也有一些常见...
2018-07-16 11:55:21
225
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人