上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 64 下一页
摘要: //函数接口 package interfaces; @FunctionalInterface public interface MyFunction2<T,R> { public R getValue(T t,T t2); } //实际实现调用 package lamdaTest; import 阅读全文
posted @ 2022-01-29 15:51 红尘沙漏 阅读(223) 评论(0) 推荐(0)
摘要: //函数式接口package lamdaTest; @FunctionalInterface public interface MyFunction { public Integer getValue(Integer num); } //具体实现调用 /** * 执行实现方法 */ @Test pu 阅读全文
posted @ 2022-01-29 14:35 红尘沙漏 阅读(59) 评论(0) 推荐(0)
摘要: select * from my_product where product_type = 1 and status = 36 and TIMESTAMPDIFF(DAY, NOW(), date_add(eff_time, interval 30 day)) = #{days,jdbcType=I 阅读全文
posted @ 2021-12-17 10:52 红尘沙漏 阅读(102) 评论(0) 推荐(0)
摘要: 最近项目中需要对list集合中的重复值进行处理,大部分是采用两种方法,一种是用遍历list集合判断后赋给另一个list集合,一种是用赋给set集合再返回给list集合。但是赋给set集合后,由于set集合是无序的,原先的顺序就打乱了。所以我又想着能不能用set的特性进行去重又不打乱顺序呢?试了一下, 阅读全文
posted @ 2021-11-02 09:03 红尘沙漏 阅读(1675) 评论(0) 推荐(0)
摘要: 摘抄学习试用第一种:Comparable 排序接口 若一个类实现了Comparable接口,就意味着“该类支持排序”。 假设“有一个List列表(或数组),里面的元素是实现了Comparable接口的类”,则该List列表(或数组)可以通过 Collections.sort(或 Arrays.sor 阅读全文
posted @ 2021-09-30 10:48 红尘沙漏 阅读(265) 评论(0) 推荐(0)
摘要: <select id="selctBeanInfo" resultType="com.cn.UserInfo" parameterType="java.lang.Integer"> select * from user_info where status = 0 and TIMESTAMPDIFF( 阅读全文
posted @ 2021-09-30 08:45 红尘沙漏 阅读(374) 评论(0) 推荐(0)
摘要: Date to LocalDateTime: Date currDate = new Date(); LocalDateTime ldt = currDate.toInstant().atZone(ZoneId.systemDefault()).toLocalDateTime(); System.o 阅读全文
posted @ 2021-09-28 14:04 红尘沙漏 阅读(1194) 评论(0) 推荐(0)
摘要: package insert; import java.sql.DriverManager; import java.sql.SQLException; import com.mysql.jdbc.Connection; public class DButil { /* * 打开数据库 */ pri 阅读全文
posted @ 2021-09-26 22:33 红尘沙漏 阅读(165) 评论(0) 推荐(0)
摘要: XMind 8 Update 9 安装教程(亲测有效) Math.PAI 2020-07-05 20:35:41 18805 收藏 64分类专栏: XMind安装教程版权 XMind安装教程专栏收录该内容1 篇文章0 订阅订阅专栏XMind 是一个全功能的思维导图和头脑风暴软件,为激发灵感和创意而生 阅读全文
posted @ 2021-08-31 09:56 红尘沙漏 阅读(602) 评论(0) 推荐(0)
摘要: 需要导入的jar包 //实体类 //监听器 //执行类 阅读全文
posted @ 2021-08-27 14:43 红尘沙漏 阅读(3354) 评论(0) 推荐(0)
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 64 下一页