List和字符串的相互转换

摘要: https://blog.csdn.net/yywusuoweile/article/details/50315377 https://blog.csdn.net/benjaminlee1/article/details/72860845 阅读全文
posted @ 2019-03-12 16:14 runmove 阅读(196) 评论(0) 推荐(0) 编辑

List集合去重

摘要: 一、String去重 或者Java8写法 二、List中对象去重 重写Student对象的equals()方法和hashCode()方法 三、根据对象的属性去重 阅读全文
posted @ 2019-02-26 16:37 runmove 阅读(1052) 评论(0) 推荐(0) 编辑

list集合分组:根据对象某一属性分组

摘要: private Map<String, List<CreditContractSignSerial>> listGroup2MapTwo(List<CreditContractSignSerial> list) { Map<String, List<CreditContractSignSerial> 阅读全文
posted @ 2019-02-25 08:49 runmove 阅读(3437) 评论(0) 推荐(0) 编辑

Java零散小总结

摘要: 1. 在类中定义布尔类型的变量 一般情况下,我们可以有以下四种方式来定义一个布尔类型的成员变量: 以上四种定义形式,你日常开发中最常用的是哪种呢?到底哪一种才是正确的使用姿势呢? 看看阿里巴巴Java开发手册中这条规定的评价 8. 【强制】POJO 类中布尔类型的变量,都不要加 is,否则部分框架解 阅读全文
posted @ 2018-12-19 09:34 runmove 阅读(147) 评论(0) 推荐(0) 编辑

分布式锁 实现

摘要: Redis实现 https://www.cnblogs.com/linjiqin/p/8003838.html https://segmentfault.com/a/1190000015058486 https://www.cnblogs.com/VergiLyn/p/7968094.html ht 阅读全文
posted @ 2018-11-19 16:35 runmove 阅读(105) 评论(0) 推荐(0) 编辑

JDK8 使用总结

摘要: // 统计还款本金BigDecimal repayPrincipleAmount = preReturnInfoResponList.stream().map(PreReturnInfoRespon::getRepayPrinciple).reduce(BigDecimal.ZERO, BigDec 阅读全文
posted @ 2018-11-16 08:45 runmove 阅读(351) 评论(0) 推荐(0) 编辑

MyBastis 三种批量插入方式的性能比较

摘要: 数据库使用的是MySQL,JDK版本1.8,运行在SpringBoot环境下 本文章源代码:https://github.com/runbeyondmove/mybatis-batch-demo 对比3种可用的方式 1、反复执行单条插入语句2、xml拼接sql3、批处理执行 先说结论:少量插入请使用 阅读全文
posted @ 2018-10-18 17:14 runmove 阅读(933) 评论(0) 推荐(0) 编辑

有关于使用JWT实现前后端分离的疑惑

摘要: v2ex上的讨论说得比较明白:[前后端分离, JWT 还是 Oauth2?](https://www.v2ex.com/amp/t/439613/2) 个人总结: 1. jwt 用于频繁且不敏感的操作 很大程度上 token 的作用就是为了在请求量比较大且多终端复用的情况下,减少登录和用户数据查询操 阅读全文
posted @ 2018-10-17 17:30 runmove 阅读(1191) 评论(0) 推荐(0) 编辑

Java 基础:认识&理解关键字 native

摘要: 参考文章: 1. http://www.cnblogs.com/DengGao/p/jni.html 2. https://www.cnblogs.com/Alandre/p/4456719.html 3. https://www.cnblogs.com/b3051/p/7484501.html 阅读全文
posted @ 2018-10-17 15:40 runmove 阅读(150) 评论(0) 推荐(0) 编辑

JavaWeb项目报错:The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

摘要: 问题描述: 加上contextpath也是报这个错误,加上工程名称demo(contextPath不配置)也报这个错误 不使用localhost使用IP地址或者127.0.0.1也报这个错误 同样的工程在别人的环境下可以正常运行(本机使用IDEA启动也可以正常访问) 而且还有一个很奇怪的问题是:明明 阅读全文
posted @ 2018-09-26 17:16 runmove 阅读(70779) 评论(0) 推荐(1) 编辑