- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 JSON.toJSON(xxList) 输出结果又中括号[],去除中括号
可以使用 String.jion(",",xxList) 可以输出没有中括号的字符串。
2024-03-18 15:14:41 429
原创 springboot junit
@RunWith(SpringRunner.class)@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.DEFINED_PORT)public class xxxxTest { @Autowired private TestRestTemplate restTemplate; @LocalServerPort private String localPort; @Test ...
2021-07-19 15:18:58 92
原创 io.lettuce.core.RedisCommandExecutionException: MOVED xxx ip:port
要使用集群模式,在配置文件中添加 clusterredis: cluster: nodes: xxxxxxxxxx
2020-12-29 15:56:27 5715
原创 查看(Linux,win)端口占用,并kill掉相关进程
一 win平台1.查找对应的端口占用的进程: netstat -aon|findstr "8088" 找到占用8088端口对应的程序的PID号;2.根据PID号找到对应的程序:tasklist|findstr "11752",找到对应的程序名;3.结束该进程:taskkill /f /t /im java.exe;或者taskkill /pid 11752 /F。如下图二 linux平台方式一lsof -i:8088kill -9 13882方式二netst...
2020-06-15 13:41:19 260
原创 Maven ide -Xlint:unchecked 重新编译
解决方式 pom.xml中增加配置,可以看到编译时的详细提示信息<plugin> <!-- 指定maven编译的jdk版本,如果不指定,maven3默认用jdk 1.5 maven2默认用jdk1.3 -->...
2020-06-11 14:18:15 2417
原创 spring boot logback日志显示时间差8小时,java时间与系统时间不一致
参考:https://blog.csdn.net/u014453475/article/details/100579856官方文档:The second parameter specifies a timezone. For example, the '%date{HH:mm:ss.SSS,Australia/Perth} would print the time in the time zone of Perth, Australia, the world's most isolat...
2020-06-08 15:57:29 6340
转载 Myeclipse/eclipse查看.Class文件
1.下载jadclipse_3.3.0 解压得到jad.exe文件和plugins文件夹里面的net.sf.jadclipse_3.3.0.jar;2.将jad.exe 放入(jre对应目录,我的目录为)C:\Program Files\Java\jre7\bin目录下;3.到MyEclipse对应的drops目录下,我的为.....\MyEclipse\MyEclipse 10\drop...
2018-09-15 11:50:45 538
google-authenticator下载,谷歌身份验证器下载
2020-06-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人