- 博客(38)
- 收藏
- 关注
原创 springfox-swagger2坑
环境:jdk1.8+,spring boot(2.1.3.RELEASE),springfox-swagger2(2.5.0),springfox-swagger-ui(2.5.0)最近使用springfox-swagger2。本来好好的接口,有一天突然发现swagger显示的接口参数A跟原来不一致,接口参数的描述变成了另外一个类A1的描述。检查后发现接口没变。但是别的同事增加了另外一个接口,...
2019-03-13 08:46:43
3839
原创 Mac10.13无法运行eclipse luna
刚开始使用的是mac 10.10.5,安装了eclipse luna 4.4.2.一直运行稳定。最近将mac 10.10.5升级到10.13.4,升级前已安装的luna也可以正常运行。后由于luna安装插件导致luna无法正常使用。于是从新解压了eclipse luna 4.4.2.但是解压出的luna无法启动。弹出 “Eclipse”意外退出。报告里显示Exception Type: ...
2019-02-01 20:33:55
715
1
原创 jmap远程连接
在远程服务器server_address上执行: 1:服务器启动java应用,查询该进程的pid 2:rmiregistry -J-Xbootclasspath/p:$JAVA_HOME/lib/sa-jdi.jar & 3:执行jsadebugd pid server-id在客户端执行: jmap -heap server_id@server_...
2019-01-04 09:06:51
1464
1
原创 HttpClient Post报错org.apache.http.NoHttpResponseException
软件版本:httpclient4.5.6,httpcore4.4.10,httpclient-cache4.5.6,httpmime4.5.6最近使用httpclient post调用第三方http服务时出现网路异常,无法获取响应。org.apache.http.NoHttpResponseException: 139.159.143.73:31820 failed to respond...
2018-11-28 15:57:53
11462
原创 Tomcat下开发websocket进行二维码扫码登录
一、开发环境:tomcat(apache-tomcat-7.0.64),Java API for WebSocket(JSR 356),ssh(struts2-2.3.36,spring-3.2.7.RELEASE, hibernate-3.6.10.Final)1:Tomcat从7.0.27开始支持WebSocket,从7.0.47开始支持JSR-356。刚开始本想使用apache-to...
2018-11-16 10:49:31
747
原创 创建linux下可执行jar文件
这里说的可执行jar是说在shell下直接输入xxx.jar,然后直接运行程序。主要原理就是将一个可执行脚本与jar文件合并到一个文件。假设可执行文件为start.sh,jar文件为helloworld.jar。执行下面脚本:cat start.sh helloworld.jar > helloworld.run.jar && chmod +x helloworld....
2018-11-04 20:27:28
676
原创 使用io.swagger集成swagger与cxf
io.swagger(1.5.2)集成cxf(2.7.18) spring(3.2.7.RELEASE) struts2(2.3.36)一:参考文档:https://github.com/swagger-api/swagger-samples/blob/master/java/java-jaxrs-cxf/src/main/webapp/index.htmlhttps://github...
2018-10-23 21:27:48
3633
1
原创 使用io.springfox配置swagger
cxf(2.7.18) spring(3.2.7.RELEASE) struts2(2.3.36).如果使用高于3.2.7.RELEASE的,在struts序列化json时会提示TruePointcut无法序列化的错误一、使用io.springfox(2.0.3)。参考文档:http://springfox.github.io/springfox/docs/current/#configu...
2018-10-23 17:19:23
6467
翻译 thingsboard代码及原理分析
参考网址:https://thingsboard.io/docs/getting-started-guides/helloworld/github地址:https://github.com/thingsboard/thingsboard演示环境:https://demo.thingsboard.io/login。注册时总提示“请确认不是机器人” 使用技术(https://thing...
2018-09-21 09:14:57
13649
翻译 Mac系统不同地址
OS X Yosemite: https://www.apple.com/asia/support/osx/upgrade/ https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=915041082&mt=12如何下载 OS X El Capitan https://support.apple...
2018-04-17 11:33:46
326
原创 SSH免密码交互输入方式
1:通过ssh公钥进行秘钥认证,将本机与远程主机建立信任关系。2:通过expect#!/usr/bin/expect -fspawn scp test.sh username@host:/home/username/expect "*Password"send "password\r"expect eof3:通过sshpass密码保存在文件第一行:sshpass -fpassfile ssh -o...
2018-04-02 15:44:50
1104
原创 R语言
Centos安装R语言如果没有安装epel源,安装epel源。yum install epel-release安装R语言。yum install R
2018-03-21 20:20:01
232
原创 thingsboard安装及配置
参考网址:https://thingsboard.io/docs/getting-started-guides/helloworld/github地主:https://github.com/thingsboard/thingsboardthingsboard使用了actor模型:akka用作服务调度:zookeeper远程调用:gRPC,thrift持久化:Cassandr...
2017-06-12 22:07:43
8504
原创 判断Integer值相等最好不用==最好使用equals
又犯了一个低级错误。在开发测试阶段误使用了Integer的==,自己测试和开发测试没有暴露问题。但是运行了一段时间的系统出问题了,debug才发现是整形的==导致错误。但是为什么测试的时候没有出现了,于是看了下Java的Integer。 public static Integer valueOf(int i) { assert IntegerCache.high >...
2017-05-23 17:12:50
285
翻译 各JDK版本对应的版本数字编号及其他内容
1:J2SE 8 = 52,J2SE 7 = 51,J2SE 6.0 = 50,J2SE 5.0 = 49,JDK 1.4 = 48,JDK 1.3 = 47,JDK 1.2 = 46,JDK 1.1 = 45 2:各个版本的jdk特性可以参考https://www.cnblogs.com/langtianya/p/3757993.html...
2017-03-27 12:26:37
13122
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人