posted @ 2021-12-25 12:13
12 2021 档案
摘要:更改后延伸问题:https://www.cnblogs.com/yyhhblog/p/15728439.html 在yml或者其他配置文件中添加如下配置即可 Spring: mvc: hiddenmethod: filter: enabled: true
阅读全文
摘要:背景 通常对安全性有要求的接口都会对请求参数做一些签名验证,而我们一般会把验签的逻辑统一放到过滤器或拦截器里,这样就不用每个接口都去重复编写验签的逻辑。 在一个项目中会有很多的接口,而不同的接口可能接收不同类型的数据,例如表单数据和json数据,表单数据还好说,调用request的getParame
阅读全文
posted @ 2021-12-24 18:05
摘要:转载:https://blog.csdn.net/u014508939/article/details/118598525
阅读全文
posted @ 2021-12-23 16:14
摘要:list排序 需要使用JDK1.8及以上 方式一: 升序 list.sort((x, y) -> Integer.compare(x.getCusBuyCount() + x.getCusRentCount(), y.getCusBuyCount() + y.getCusRentCount()));
阅读全文
posted @ 2021-12-23 15:13
摘要:Catalina.out 日志文件动不动就好几个G,找点东西犹如大海捞针,记录下查找的语句: cat catalina.out |grep '保存用户信息出现更新错误' cat catalina.out |grep -C 10 '保存用户信息出现更新错误' |more 转载:https://blog
阅读全文
posted @ 2021-12-22 16:44
摘要:/**获取两个时间节点之间的月份列表**/ private static List<String> getMonthBetween(String minDate, String maxDate){ ArrayList<String> result = new ArrayList<String>();
阅读全文
posted @ 2021-12-22 11:31