会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
正怒月神
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
10
11
12
13
14
15
16
17
18
···
60
下一页
2021年12月22日
java 动态 Lambda (二)
摘要: 相较于https://blog.csdn.net/hanjun0612/article/details/121972663?spm=1001.2014.3001.5501这次添加了更多的指令 一,反射类 package com.leadtrans.report.common; import org.
阅读全文
posted @ 2021-12-22 16:28 正怒月神
阅读(128)
评论(0)
推荐(0)
2021年12月16日
java 动态 lambda
摘要: 最近有需求,需要根据配置文件, 动态的 过滤+聚合 数据 想想就写了动态的lambda,方便使用。 目前只有 filter和group。并且没有测试过性能。 如果大家使用的话,先将就一下,或者自己改改。 一,主要方法类 通过反射,来组装lambda。 主要使用方法: getFiledValue ge
阅读全文
posted @ 2021-12-16 13:40 正怒月神
阅读(284)
评论(1)
推荐(0)
2021年12月10日
springboot 反射调用方法
摘要: 反射方法: public class ReflectionUtil { /** * 调用示例 * public ApiResponse<String> myTest() throws Exception { * Class[] argsType=new Class[]{Class.forName("
阅读全文
posted @ 2021-12-10 15:17 正怒月神
阅读(1532)
评论(0)
推荐(0)
DateTime 时间格式
摘要: 转载:DateTime的Format格式 - _成飞 - 博客园 格式模式 说明 d 月中的某一天。一位数的日期没有前导零。 dd 月中的某一天。一位数的日期有一个前导零。 ddd 周中某天的缩写名称,在 AbbreviatedDayNames 中定义。 dddd 周中某天的完整名称,在 DayNa
阅读全文
posted @ 2021-12-10 10:38 正怒月神
阅读(927)
评论(0)
推荐(0)
2021年12月9日
easyexcel 时间转换
摘要: 转换器: package com.leadtrans.report.config; import com.alibaba.excel.converters.Converter; import com.alibaba.excel.converters.ReadConverterContext; imp
阅读全文
posted @ 2021-12-09 18:12 正怒月神
阅读(1929)
评论(0)
推荐(0)
springboot stopwatch
摘要: StopWatch watch = new StopWatch(); watch.start("A job"); //A job watch.stop(); watch.start("B job"); //B job watch.stop(); //分别打印 A/B job 耗时 watch.pre
阅读全文
posted @ 2021-12-09 16:32 正怒月神
阅读(294)
评论(0)
推荐(0)
2021年12月8日
mybatis plus 执行sql
摘要: 废话不多。 mapper @Select("${sqlStr}") List<MyTest> dynamicSql(@Param("sqlStr")String sql); 测试 @Autowired MyTestMapper myTestMapper; @Test public void Dyna
阅读全文
posted @ 2021-12-08 17:57 正怒月神
阅读(1692)
评论(0)
推荐(1)
springboot 打印 mybatis-plus 的sql
摘要: 感觉mybatis-lus打印的sql, 包含row信息,实在太多了。 干脆就只使用logback的输出来弄。 application.yml 下面 com.xx.xx.mapper 是你得mapper所在得包路径 logging: pattern: console: "%d - %msg%n" f
阅读全文
posted @ 2021-12-08 11:07 正怒月神
阅读(65)
评论(0)
推荐(0)
2021年11月25日
easyexcel 简单使用
摘要: 一,导包 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>3.0.5</version> </dependency> <dependency> <groupId>org.a
阅读全文
posted @ 2021-11-25 11:15 正怒月神
阅读(659)
评论(0)
推荐(0)
python 判断是否空字符串
摘要: 方法1: float(inputStr.strip() or '0') 方法2: "0" if inputStr=="" else "123"
阅读全文
posted @ 2021-11-25 10:49 正怒月神
阅读(173)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
60
下一页
公告