会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
幻月hah
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
7
8
9
10
11
12
13
下一页
2019年12月30日
vue防止多次点击,重复请求
摘要: 1.添加自定义文件 preventReClick.js 2.在main.js中引用 3.实现方式。在按钮上添加v-preventReClick
阅读全文
posted @ 2019-12-30 14:46 幻月hah
阅读(16372)
评论(2)
推荐(1)
2019年12月26日
金额的单位转换,元转分
摘要: 对接支付平台时常使用
阅读全文
posted @ 2019-12-26 13:43 幻月hah
阅读(1662)
评论(0)
推荐(0)
2019年12月24日
springboot自定义启动类
摘要: import com.ax.service.pay.OrderService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.Application
阅读全文
posted @ 2019-12-24 10:00 幻月hah
阅读(1432)
评论(0)
推荐(0)
2019年12月20日
springcloud + vue + websocket
摘要: 1.前端 前端监听地址:ip:webSocket服务的端口号/webSocket/参数 mounted() {// 初始化WebSocket this.initWebSocket(); },methods: { // WebSocket相关 initWebSocket: function() { i
阅读全文
posted @ 2019-12-20 17:29 幻月hah
阅读(1450)
评论(2)
推荐(0)
2019年11月25日
lambda表达式应用
摘要: 1、List<对象>根据对象的某个属性,提取重复 List<String> listDetail = list.stream(). collect(Collectors.groupingBy(item -> item.getIdCard(), Collectors.counting())) .ent
阅读全文
posted @ 2019-11-25 10:07 幻月hah
阅读(173)
评论(0)
推荐(0)
2019年11月20日
ArrayList<String[]>去重方法
摘要: 通过set的方式去重 针对String[]数组中第二各元素的去重 通过LinkedHashSet方式去重 对象中的某个元素去重,并提取该元素组成新的List
阅读全文
posted @ 2019-11-20 16:46 幻月hah
阅读(1107)
评论(0)
推荐(0)
2019年11月19日
SpringCloud使用Feign Form实现微服务之间的文件上传
摘要: 1.pom依赖 2.MultipartSupportConfig配置类 3.后端接口改造 关键字consumes = MULTIPART_FORM_DATA_VALUE 4.FeignClient接口改造 引入配置类MultipartSupportConfig,和接口注解consumes = MUL
阅读全文
posted @ 2019-11-19 11:51 幻月hah
阅读(3034)
评论(0)
推荐(0)
上传Excel,并解析
摘要: pom依赖 1.工具类方法,检测上传目录,若不存在则创建 private void judgeDirExists(String uoloadPath) { try { File targetPatchFile = new File(uploadPath); if (!targetPatchFile.
阅读全文
posted @ 2019-11-19 11:41 幻月hah
阅读(608)
评论(0)
推荐(0)
2019年11月14日
时间转换:UTC时区转北京时间
摘要: Date时区转换工具方法
阅读全文
posted @ 2019-11-14 10:41 幻月hah
阅读(19933)
评论(0)
推荐(0)
2019年10月31日
代码优化记录(不定期更新)
摘要: 1.map遍历entrySet()优于keySet()
阅读全文
posted @ 2019-10-31 15:35 幻月hah
阅读(154)
评论(0)
推荐(0)
上一页
1
···
7
8
9
10
11
12
13
下一页
公告