上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页
摘要: package com.xf.config; import java.io.IOException; import java.io.InputStream; import java.lang.reflect.Type; import java.util.List; import javax.anno 阅读全文
posted @ 2022-01-24 18:49 wujf 阅读(360) 评论(0) 推荐(0)
摘要: package com.xf.config; import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java. 阅读全文
posted @ 2022-01-19 10:03 wujf 阅读(604) 评论(0) 推荐(0)
摘要: package com.xf.config; import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOExce 阅读全文
posted @ 2022-01-17 16:41 wujf 阅读(45) 评论(0) 推荐(0)
摘要: 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 阅读(304) 评论(0) 推荐(0)
摘要: /** * 锁定一个key,***一定要手工释放锁 * * @param key * @return */ public boolean lockKey(String key) { return redisTemplate.opsForValue().setIfAbsent(key, 0); } / 阅读全文
posted @ 2021-12-22 17:45 wujf 阅读(68) 评论(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 阅读(86) 评论(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 阅读(101) 评论(0) 推荐(0)
摘要: @PostConstruct对于注入到Spring容器中的类,在其成员函数前添加@PostConstruct注解,则在执行Spring beans初始化时,就会执行该函数。但由于该函数执行时,其他Spring beans可能并未初始化完成,因此在该函数中执行的初始化操作应当不依赖于其他Spring 阅读全文
posted @ 2021-11-20 12:30 wujf 阅读(3557) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { //允许最大的登录数 int slots=10; ExecutorService executorService = Executors.newFixedThreadPool(slots); LoginQueueUsi 阅读全文
posted @ 2021-11-11 18:25 wujf 阅读(86) 评论(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 阅读(68) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 24 下一页