会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wujf
动力缘于追求!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
24
下一页
2021年10月19日
php上传微信素材
摘要: private function HttpsUpdateFileServerRequest($url,$path_img){ $curl = curl_init (); if (class_exists ( '\CURLFile' )) { //php>=5.6版本 $filedata=array(
阅读全文
posted @ 2021-10-19 15:31 wujf
阅读(162)
评论(0)
推荐(0)
2021年9月25日
mybatis-plus 多租户
摘要: package com.ruoyi.framework.config; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; i
阅读全文
posted @ 2021-09-25 18:58 wujf
阅读(1006)
评论(0)
推荐(0)
VUE防止多次点击,重复请求
摘要: 1.添加自定义文件 preventReClick.js import Vue from 'vue' const preventReClick = Vue.directive('preventReClick', { inserted: function (el, binding) { el.addEv
阅读全文
posted @ 2021-09-25 15:54 wujf
阅读(850)
评论(0)
推荐(0)
java 金额计算
摘要: package com.example.test; import android.util.Log; import java.math.BigDecimal; import java.text.DecimalFormat; /** * 金额工具类,主要是金额的格式化,金额的加、减 * @author
阅读全文
posted @ 2021-09-25 12:17 wujf
阅读(1780)
评论(0)
推荐(0)
2021年9月24日
java执行js脚本
摘要: @Test public void aa() throws NoSuchMethodException { String regular = "function regular(args1){ return 1+args1 ;}"; ScriptEngine engine = new ScriptE
阅读全文
posted @ 2021-09-24 18:39 wujf
阅读(417)
评论(0)
推荐(0)
2021年9月18日
顺手写的一个防重复提交
摘要: 注解定义 package com.xf.common; import java.lang.annotation.Documented; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; im
阅读全文
posted @ 2021-09-18 10:15 wujf
阅读(49)
评论(0)
推荐(0)
2021年9月17日
spring-security 解决
摘要: 引入依赖 <dependency> <groupId>org.springframework.security</groupId> <artifactId>spring-security-core</artifactId> </dependency> 测试 @Test public void pas
阅读全文
posted @ 2021-09-17 17:37 wujf
阅读(768)
评论(0)
推荐(0)
2021年9月9日
美团数据采集
摘要: import json import requests headers = { "User-Agent": "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198
阅读全文
posted @ 2021-09-09 15:57 wujf
阅读(458)
评论(0)
推荐(0)
2021年8月31日
数据采集之刷cnblog评论
摘要: python代码如下: import random import time import requests cookies = { '__gads': 'ID=3c504aa17c4a7048:T=1628576892:S=ALNI_MY9Ppx3sxnhZ1y2muUyXgSPRxKDbg', '
阅读全文
posted @ 2021-08-31 09:03 wujf
阅读(218)
评论(0)
推荐(0)
2021年8月25日
countdownlatch应用场景
摘要: 场景1 让多个线程等待:模拟并发,让并发线程一起执行 为了模拟高并发,让一组线程在指定时刻(秒杀时间)执行抢购,这些线程在准备就绪后,进行等待(CountDownLatch.await()),直到秒杀时刻的到来,然后一拥而上;这也是本地测试接口并发的一个简易实现。 在这个场景中,CountDownL
阅读全文
posted @ 2021-08-25 14:04 wujf
阅读(509)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
24
下一页
公告