会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wujf
动力缘于追求!
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
24
下一页
2022年1月24日
@ControllerAdvice解密请求,加密响应
摘要: 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)
2022年1月19日
过滤器加密解密请求和响应
摘要: 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)
2022年1月17日
请使用过滤器打日志吧
摘要: 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)
2022年1月6日
springboot自定义验证-传值范围
摘要: 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)
2021年12月22日
顺手写的redis分布式锁
摘要: /** * 锁定一个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)
2021年12月8日
动态数据源玩起来
摘要: 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)
2021年12月3日
elementui表格自定义格式实现原理???
摘要: <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)
2021年11月20日
Spring Boot启动时执行初始化操作三种方法分享
摘要: @PostConstruct对于注入到Spring容器中的类,在其成员函数前添加@PostConstruct注解,则在执行Spring beans初始化时,就会执行该函数。但由于该函数执行时,其他Spring beans可能并未初始化完成,因此在该函数中执行的初始化操作应当不依赖于其他Spring
阅读全文
posted @ 2021-11-20 12:30 wujf
阅读(3557)
评论(0)
推荐(0)
2021年11月11日
多线程之Semaphore登录限流示例
摘要: 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)
2021年11月4日
myatbis的一个好的封装
摘要: 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
下一页
公告