自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 HttpClient连续请求是报错

HttpClient线程不安全 请求时加锁synchronized (lock) { httpResponse = httpClient.execute(httpPost); inputStream = httpResponse.getEntity().getContent(); result = IOUtils.toString(inputStream);}...

2018-04-02 21:41:47 1118

原创 aes linux下报错

KeyGenerator keyGen = KeyGenerator.getInstance("AES");SecureRandom random=SecureRandom.getInstance("SHA1PRNG");random.setSeed(decryptKey.getBytes());keyGen.init(128, random);Cipher cipher = Ciphe...

2018-04-01 14:53:47 456

原创 netty接收过长字节分包问题

ch.pipeline().addLast("framedecoder",new LengthFieldBasedFrameDecoder(1024*1024*1024, 0, 4,0,4));协议前四字节为长度

2018-03-27 21:52:26 7582

原创 NETTY

package com.androidwatcher.common;import io.netty.bootstrap.ServerBootstrap;import io.netty.buffer.ByteBuf;import io.netty.channel.*;import io.netty.channel.nio.NioEventLoopGroup;import io.netty...

2018-03-27 14:08:40 121

原创 android studio 使用jdk1.8

compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8}

2018-03-10 14:52:52 1002

原创 springboot+pagehelper

pagehelper 不入侵mapper代码下物理分页<dependency> <groupId>com.github.pagehelper</groupId> <artifactId>pagehelper-spring-boot-starter</artifactId> <version>1.2...

2018-03-05 20:18:07 277

原创 redis漏洞被攻击

redis在无密码 且无bind情况下 黑客可以拿到root凌晨四点 服务器被攻击 之后服务器内存一直被udevs占满,疑似挖矿进程,删除会自动恢复去掉执行权限 chmod -x 后 杀掉进程 服务器正常...

2018-03-05 10:44:10 578

原创 redis配置

启动sudo /usr/bin/redis-server /etc/redis.conf 配置必须带上允许外网访问 注释掉bind 修改protected-mode为no后台启动 修改daemonize为yes

2018-03-04 12:40:58 140

原创 @Valid不使用bind改为抛出异常

默认没bind返回400不想返回400可以实现ConreollerAdvicer并且不继承spring自带的

2018-03-03 23:02:58 1786

原创 springboot 拦截器注入不进service

import com.java.web.template.Interceptor.LoginInterceptor;import org.springframework.context.annotation.Bean;import org.springframework.context.annotation.Configuration;import org.springframework.w...

2018-03-03 23:01:50 1152 1

原创 nginx配置

proxy_pass http://java/; 最后有/转发到http://java/ 没有/需要转发到http://java/location/upstream node {        server 00.00.000.000:3000;    }    upstream java {        server 00.00.000.000:8080;    }    server {  ...

2018-03-02 12:25:51 130

原创 前端发布脚本

#!/bin/bashpm2 stop allecho "停服务"rm -rf JavaWebNodeTemplateecho "删除原代码"git clone git@github.com:15712311828/JavaWebNodeTemplate.gitecho "代码拉取成功"cd JavaWebNodeTemplatenpm installpm2 start app.jsecho "启...

2018-03-01 18:49:12 486 1

原创 后端发布脚本

#!bin/bashtomcat stopecho "停服务"rm -rf JavaWebTemplateecho "删除原目录"git clone git@github.com:15712311828/JavaWebTemplate.gitecho "拉取代码成功"cd JavaWebTemplatemvn packageecho "打包成功"cp target/JavaWebTemplate-...

2018-03-01 18:40:32 322

原创 mybatis-generator

<build> <plugins> <plugin> <groupId>org.mybatis.generator</groupId> <artifactId>mybatis-generator-maven-plugin</artifactId&gt

2018-03-01 13:22:35 89

原创 node服务器关闭终端服务器停止问题

使用pm2

2018-03-01 13:10:56 2233 1

原创 tomcat启动

启动tomcat start访问路径xxx.com:8080/war包/mapping

2018-03-01 13:09:41 133

空空如也

空空如也

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

TA关注的人

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