上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: package com.xf.common; import static java.lang.annotation.ElementType.ANNOTATION_TYPE; import static java.lang.annotation.ElementType.CONSTRUCTOR; imp 阅读全文
posted @ 2022-01-06 12:30 wujf 阅读(291) 评论(0) 推荐(0) 编辑
摘要: /** * 锁定一个key,***一定要手工释放锁 * * @param key * @return */ public boolean lockKey(String key) { return redisTemplate.opsForValue().setIfAbsent(key, 0); } / 阅读全文
posted @ 2021-12-22 17:45 wujf 阅读(59) 评论(0) 推荐(0) 编辑
摘要: package com.xf.config; import java.sql.SQLException; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import 阅读全文
posted @ 2021-12-08 14:53 wujf 阅读(71) 评论(0) 推荐(0) 编辑
摘要: <html> <head> <title>学习</title> <meta charset="utf-8"> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale 阅读全文
posted @ 2021-12-03 11:38 wujf 阅读(88) 评论(0) 推荐(0) 编辑
摘要: @PostConstruct对于注入到Spring容器中的类,在其成员函数前添加@PostConstruct注解,则在执行Spring beans初始化时,就会执行该函数。但由于该函数执行时,其他Spring beans可能并未初始化完成,因此在该函数中执行的初始化操作应当不依赖于其他Spring 阅读全文
posted @ 2021-11-20 12:30 wujf 阅读(3421) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { //允许最大的登录数 int slots=10; ExecutorService executorService = Executors.newFixedThreadPool(slots); LoginQueueUsi 阅读全文
posted @ 2021-11-11 18:25 wujf 阅读(72) 评论(0) 推荐(0) 编辑
摘要: package com.pj.project4sp; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Component; import com. 阅读全文
posted @ 2021-11-04 11:10 wujf 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(950) 评论(0) 推荐(0) 编辑
摘要: 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 阅读(803) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页