- 博客(15)
- 收藏
- 关注
转载 centos 7 Docker安装
Docker 软件包已经包括在默认的 CentOS-Extras 软件源里。因此想要安装 docker,只需要运行下面的 yum 命令: yum install docker-io -y 直接yum安装,安装成功后查看版本 docker -v 启动docker service docker...
2018-04-27 11:07:00
149
转载 Protostuff序列化
依赖 <dependency> <groupId>io.protostuff</groupId> <artifactId>protostuff-core</artifactId> ...
2018-04-04 17:44:00
164
转载 springboot 全局异常处理
ajax返回 package com.dl.ExceptionTest; import com.alibaba.fastjson.JSONObject; import org.springframework.web.bind.annotation.RestControllerAdvice;...
2018-04-03 11:09:00
140
转载 搭建elk
准备java环境,略过 安装Elasticsearch 下载Elasticsearch wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.2.3.tar.g...
2018-03-30 10:54:00
127
转载 搭建elk
不能用root启动 [2018-03-29T16:21:21,766][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread [main] org.elasticsearch.b...
2018-03-29 17:48:00
163
转载 字符串转换成为16进制(无需Unicode编码)
/** * 字符串转换成为16进制(无需Unicode编码) * @param str * @return */ public static String str2HexStr(String str) { char[] chars...
2018-03-21 17:53:00
393
转载 标准3des加密
package com.gzcb.creditcard.txcard.cashout.util; import sun.misc.BASE64Decoder; import javax.crypto.Cipher; import javax.crypto.SecretKey; import...
2018-03-21 17:49:00
268
转载 springboot springcloudconfigServer 读取本地配置中文乱码 ,新建处理格式
转载请注明出处 spring boot 在读取本地文件方式时,中文乱码,但读取application.properties不乱码,用文本工具查看resorces下的application.properties,发现中文格式是iso-8859-1编码显示,原因找到,编辑器工具会自动转编码 查看源...
2018-03-15 10:21:00
460
转载 feign客户端关闭重试,超时时间配置
#ribbon.MaxAutoRetries只能设置成0或者不配置,否则会重试 ribbon.MaxAutoRetries=0 ribbon.MaxAutoRetriesNextServer=0 #超时时间 hystrix.command.default.execution.isolati...
2018-02-08 18:27:00
2279
转载 计算含有中文的字符串长度
/** * 得到一个字符串的长度,显示的长度,一个汉字或日韩文长度为2,英文字符长度为1 * @param s 需要得到长度的字符串 * @return int 得到的字符串长度 */ public static int getLength(S...
2018-02-07 18:45:00
590
转载 @Component @RefreshScope一起用不生效
@Component @RefreshScope(proxyMode = DEFAULT) 转载于:https://my.oschina.net/u/3560494/blog/1619...
2018-02-06 18:32:00
6300
转载 springcloud eureka 剔除失效服务
eureka server: #eureka server刷新readCacheMap的时间,注意,client读取的是readCacheMap,这个时间决定了多久会把readWriteCacheMap的缓存更新到readCacheMap上 #默认30s eureka.server.resp...
2018-01-25 21:55:00
674
转载 生成jvm堆文件
./jmap -dump:format=b,file=haha.hprof 10815 file:文件名 10815:pid 转载于:https://my.oschina.net/u/...
2018-01-12 15:54:00
217
转载 quartz集群
properties: #============================================================================ # Configure Main Scheduler Properties #==================...
2017-12-28 17:50:00
97
转载 注入静态类
@Component public class WechatUtil { private static SendToCup send; @Value("${send}") @Autowired public void setSend(SendToCup se...
2017-12-05 09:37:00
301
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅