自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(1153)
  • 问答 (3)
  • 收藏
  • 关注

原创 消息摘要算法 MD5 和 SHA1

1、MD5与SHA1区别 https://www.jianshu.com/p/d6b491b235fe2、数字签名算法MD5和SHA-1的比较 http://stark-summer.iteye.com/blog/13138843、MD5 https://baike.baidu.com/item/MD54、消息摘要算法 https://baike.baidu.com/item/...

2018-05-11 20:13:06 982

原创 SpringBoot 使用 @Scheduled 开启定时任务

1、SpringBoot 使用@Scheduled注解配置定时任务 https://blog.csdn.net/onedaycbfly/article/details/790938292、SpringBoot开发详解(十二) – SpringBoot中执行定时任务 https://blog.csdn.net/qq_31001665/article/details/76408929...

2018-05-11 11:17:04 4022

原创 Java I/O 学习

1、Java 流(Stream)、文件(File)和IO http://www.runoob.com/java/java-files-io.html2、Java IO教程 http://ifeve.com/java-io/3、Java I/O 总结 http://www.importnew.com/23708.html

2018-05-11 11:15:11 230

转载 Selenium 不再支持 PhantomJS 的解决办法

震惊!Selenium分手PhantomJS 背景今天本地调试基于Selenium+PhantomJS的动态爬虫程序顺利结束后,着手部署到服务器上,刚买的热乎的京东云,噼里啪啦一顿安装环境,最后跑的时候报了这么个错误:UserWarning: Selenium support for ...

2018-05-11 10:45:06 8558 2

原创 BitMap 、布隆过滤器

1、数学之美系列二十一 - 布隆过滤器(Bloom Filter) https://china.googleblog.com/2007/07/bloom-filter_7469.html2、【算法】哈希表、Bitmap与布隆过滤器 http://dogless.farbox.com/post/github/-suan-fa-ha-xi-biao-bitmapyu-bu-long-guo-l...

2018-05-10 18:22:19 313

原创 MySQL 中的唯一索引

唯一索引:① 关于 Null 允许 Null,允许多个 Null② 关于空值(空字符串)(Empty String)允许空字符串,但不允许重复参考资料:1、MySQL 唯一性约束与 NULL https://yemengying.com/2017/05/18/mysql-unique-key-null/...

2018-05-10 16:22:40 1648

原创 Redis 命令 INCR、GETSET、INCRBY 的使用方法

INCR key将 key 中储存的数字值增一。如果 key 不存在,那么 key 的值会先被初始化为 0 ,然后再执行 INCR 操作。如果值包含错误的类型,或字符串类型的值不能表示为数字,那么返回一个错误。本操作的值限制在 64 位(bit)有符号数字表示之内。返回值: 执行 INCR 命令之后 key 的值。GETSET key value将给定 key 的...

2018-05-10 15:56:00 4051

原创 使用 Jsch 连接远程服务器

<dependency> <groupId>com.jcraft</groupId> <artifactId>jsch</artifactId> <version>0.1.53</version> </dependency&g

2018-05-09 18:29:40 1674

原创 使用 Ganymed SSH-2 连接远程服务器的方法

<!-- https://mvnrepository.com/artifact/ch.ethz.ganymed/ganymed-ssh2 --><dependency> <groupId>ch.ethz.ganymed</groupId> <artifactId>ganymed-ssh2</artifactId&g...

2018-05-09 18:24:26 2040 1

原创 Shell 中 if else 的用法和 字符串比较的方法

参考资料:1、shell脚本—-if(数字条件,字符串条件,字符串为空) https://blog.csdn.net/yf210yf/article/details/92071472、Shell if else 语句 http://wiki.jikexueyuan.com/project/shell-tutorial/shell-if-else-statement.html3、sh...

2018-05-09 18:19:56 5844 1

原创 Shell 接收传递参数的方法

#!/bin/bash# author:菜鸟教程# url:www.runoob.comecho "Shell 传递参数实例!";echo "执行的文件名:$0";echo "第一个参数为:$1";echo "第二个参数为:$2";echo "第三个参数为:$3";$ chmod +x test.sh $ ./test.sh 1 2 3Shell 传递参数实例!执行的文件...

2018-05-09 18:18:03 16612

转载 Spring aop:pointcut--expression--多个execution连接方法

Spring aop:pointcut–expression–多个execution连接方法 声明式事务,多个execution连接方法: expression=”execution(* pp.business.*.*(..)) or execution(* pp.business....

2018-05-08 18:29:56 5286

原创 Docker 入门实践与国内 docker 镜像

1、Docker 入门实践 https://cloud.tencent.com/developer/article/10059042、Docker 极速下载 http://get.daocloud.io/

2018-05-08 18:17:56 277

转载 在 Windows 上通过 Kitematic 使用 Docker

https://linux.cn/article-6131-1.html#3_3279在本篇文章中,我们会学习如何在 Windows 操作系统上安装 Kitematic 以及部署一个测试性的 Nginx Web 服务器。Kitematic 是一个具有现代化的界面设计的自由开源软件,它可以让我们在 Docker 中交互式执行任务。Kitematic 设计的非常漂亮、界面美观。使用它,我们可以...

2018-05-08 18:15:58 12521 2

转载 MySQL 索引的查看创建和删除

MySQL索引的创建、删除和查看MySQL索引的查看创建和删除此文转自http://blogold.chinaunix.net/u3/93470/showart_2001536.html1.索引作用   在索引列上,除了上面提到的有序查找之外,数据库利用各种各样的快速定位技术,能够大大提高查询效率。特别是当数据量非常大,查询涉及多个表时,使用索引往往能使查询速...

2018-05-08 18:13:34 183

原创 Mysql 主键索引、唯一索引、普通索引、全文索引、组合索引的区别

Mysql主键索引、唯一索引、普通索引、全文索引、组合索引的区别MySQL索引原理及慢查询优化 Mysql索引概念:说说Mysql索引,看到一个很少比如:索引就好比一本书的目录,它会让你更快的找到内容,显然目录(索引)并不是越多越好,假如这本书1000页,有500也是目录,它当然效率低,目...

2018-05-08 18:12:07 877

转载 Controller 层异常统一处理的方式

Controller层方法,进行统一异常处理Controller层方法,进行统一异常处理提供两种不同的方案,如下:方案1:使用 @@ControllerAdvice (或@RestControllerAdvice), @ExceptionHandler 注解实现;方案2: 使用AOP技术实现;现在分别介绍方案1: 使用@ControllerAdvice 和 @Excepti...

2018-05-07 20:03:34 3235

原创 AOP @AfterThrowing 注解的使用方法

资料:1、Spring AOP(三)之AfterThrowing增强处理 https://blog.csdn.net/owen_william/article/details/508127802、【Spring-AOP-学习笔记-6】@AfterThrowing增强处理简单示例 http://www.cnblogs.com/ssslinppp/p/4633595.html3、基于A...

2018-05-07 20:02:15 11674 1

转载 Docker下安装 Logstash+Elasticsearch+Kibana 的方法

记一次Docker下安装Logstash+Elasticsearch+Kibana经历 前言最近遇到一个困惑,在kibana上捞客户端用户行为相关的数据,无奈无法提取一个字段中的kv值。作为一个移动开发人员,对这种东西简直就是日了狗了,请教了下公司推荐组的人,也没有得到结果,靠人不如靠自己...

2018-05-07 19:40:42 1361

原创 Docker 运行 RabbitMQ 容器的方法

参考资料:1、使用docker安装rabbitmq及遇到的问题 https://blog.csdn.net/qq_35981283/article/details/696481712、Docker实战:Docker安装部署RabbitMQ https://blog.csdn.net/liyuejin/article/details/78410586...

2018-05-07 19:39:40 3523

转载 Docker 运行 MySQL 容器的方法

Docker运行Mysql实例 Docker 官网 MYsql镜像运用https://hub.docker.com/_/mysql/Docker基本命令及获取mysql镜像请参考:http://blog.csdn.net/xiaolyuh123/article/details...

2018-05-07 19:38:09 1834

原创 MySQL 查看版本的方法

1、Mysql查看版本号的五种方式介绍 https://blog.csdn.net/kaifeng2988/article/details/524968112、如何查看MySQL的版本? https://blog.csdn.net/xiyang_1990/article/details/55803516...

2018-05-07 16:44:32 1910

原创 ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded

问题: 连接Docker启动的mysql出现:ERROR 2059 (HY000): Authentication plugin ‘caching_sha2_password’ cannot be loaded C:\mysqldata>mysql -h 127.0.0.1 -P 13306 -uroot -p Enter password: ** ERROR ...

2018-05-07 15:56:32 5685

原创 Docker 拉取镜像报错 net/http: TLS handshake timeout 的解决办法

net/http: TLS handshake timeout切换 docker 镜像源可破切换为国内 daocloud 为镜像源http://f2d6cb40.m.daocloud.io参考资料:1、解决centos7下拉取镜像时报错:net/http: TLS handshake timeout https://blog.csdn.net/banche1...

2018-05-07 15:51:36 4901

原创 Docker not running on windows 10 error: Hardware assisted virtualization and data execution protecti

Docker not running on windows 10 error: Hardware assisted virtualization and data execution protection must be enabled in the BIOSDocker 启动异常的解决办法启动BIOS的虚拟化设置 | 开启CPU虚拟化支持 https://jingyan.bai...

2018-05-07 13:49:36 2264

原创 Linux 下设置 Redis 后台启动的方法

1、redis如何后台启动 https://blog.csdn.net/ksdb0468473/article/details/521260092、linux安装redis并在后台启动 http://blog.51cto.com/itafei/2095276

2018-05-07 11:02:40 4711

原创 Linux 修改进站提示 /etc/motd

vim /etc/motd/** *        ┏┓ ┏┓+ + *       ┏┛┻━━━━━━━┛┻┓ + + *       ┃       ┃ *       ┃   ━   ┃ ++ + + + *       █████━█████ ┃+ *       ┃       ┃ + *       ┃   ┻   ┃ *       ┃...

2018-05-06 17:22:37 6882

原创 Spring 使用 切面配合自定义注解处理 Web 层的异常

资料:1、切面和自定义注解的配合使用 https://blog.csdn.net/huangyu1985/article/details/534497762、Spring AOP 抛出增强捕获异常 https://blog.csdn.net/ab7253957/article/details/509106713、基于spring注解AOP的异常处理 https://www.cnb...

2018-05-06 15:35:23 557

原创 使用 JSR303 校验用户输入参数

资料:1、JSR 303 - Bean Validation 介绍及最佳实践https://www.ibm.com/developerworks/cn/java/j-lo-jsr303/index.html2、SpringMVC 使用JSR-303进行校验 @Validhttps://www.cnblogs.com/eggbucket/p/3264074.html3、使用JSR...

2018-05-06 10:41:27 553

原创 使用 @Valid 注解校验输入参数

1、SpringMVC使用@Valid注解进行数据验证 https://blog.csdn.net/zknxx/article/details/524267712、@Valid注解的使用 https://blog.csdn.net/xzmeasy/article/details/76098188

2018-05-06 10:35:56 3838

转载 RedisTemplate和StringRedisTemplate

关于RedisTemplate和StringRedisTemplate 最近在开始在学习Redis以及如何在Java当中去使用Redis,Redis是什么我这里就不说了。我主要想说的是Redis和Java当中Spring结合起来的时候,使用到的RedisTemplate和StringRedisTemp...

2018-05-06 10:21:27 798

原创 分布式 Session、Session 一致性\基于 Redis 管理分布式 Session

资料:1、分布式系统session一致性的问题 https://www.cnblogs.com/study-everyday/p/7853145.html2、【Linux运维-集群技术进阶】集群/分布式环境下5种session处理策略 https://blog.csdn.net/u010028869/article/details/50773174?ref=myread3、关于使用...

2018-05-06 00:51:01 1078

转载 @Configuration 配合 @Bean 的使用

Spring Boot提倡约定优于配置,如何将类的生命周期交给spring1、第一种自己写的类,Controller,Service。 用@controller @service即可2、第二种,集成其它框架,比如集成shiro权限框架,集成mybatis分页插件PageHelper,第三方框...

2018-05-06 00:47:23 534

原创 MyBatis3 注解SQL 的使用方法

参考资料:1、MyBatis 3(中文版) 第四章 使用注解配置SQL映射器 https://blog.csdn.net/u013214151/article/details/522116142、MyBatis3-基于注解的示例 https://www.cnblogs.com/EasonJim/p/7070820.html3、Mybatis接口注解 https://www.yii...

2018-05-06 00:46:39 6262

原创 Spring Boot @ConfigurationProperties 注解的使用方法以及与 @Value 的区别

参考资料:1、Spring Boot 之 @ConfigurationProperties https://blog.csdn.net/u013725455/article/details/793524592、spring-boot @ConfigurationProperties脑洞真大 https://blog.csdn.net/guduyishuai/article/detail...

2018-05-06 00:45:10 1113

转载 @ControllerAdvice + @ExceptionHandler 全局处理 Controller 层异常

@ControllerAdvice + @ExceptionHandler 全局处理 Controller 层异常SpringMVC重要注解(二)@ControllerAdvicespringMVC使用@ControllerAdvice实现异常处理 零、前言对于与数据库相关的 Sp...

2018-05-06 00:21:04 441

原创 AOP 报错 return value from advice does not match primitive return type for: public boolean

return value from advice does not match primitive return type for: public boolean环绕型切面的返回值不能为 void ,应该为 Object参考资料:1、AOP exception when calling Around aspects on https://stackoverflow.com...

2018-05-04 19:40:01 3606

原创 MySQL 查询已建好数据表的建表 SQL 语句

SHOW CREATE TABLE table_name就这样嗯http://bbs.chinaunix.net/thread-1010615-1-1.html

2018-05-04 16:42:40 12958 1

原创 Spring DevTools 的使用方法

1、Spring DevTools 介绍https://blog.csdn.net/isea533/article/details/704957142、Spring Boot学习笔记-配置devtools实现热部署https://blog.csdn.net/HowieLi_1995/article/details/60872788...

2018-05-04 14:39:13 1093

原创 Java7 try-with-resource 的使用方法

参考资料:1、深入理解Java try-with-resourcehttps://zhuanlan.zhihu.com/p/278249342、java7新特性之Try-with-resources statementhttps://blog.csdn.net/fireofjava/article/details/7220754...

2018-05-04 14:05:46 508

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除