上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 64 下一页
摘要: IntelliJ IDEA如何用maven命令打jar包?下面给大家详细介绍一下具体步骤及说明。 工具/原料 IntelliJ IDEA maven 方法/步骤 第一步在CMD命令窗口输入mvn -v。验证本地maven环境是否安装成功。 第二步在IntelliJ IDEA选择底部的Terminal 阅读全文
posted @ 2020-12-08 11:48 红尘沙漏 阅读(1044) 评论(0) 推荐(0)
摘要: /** * 公司培训课时汇总 * @return */ @Override public List<CompanyTrainingClassGather> getCompanyTrainingClassGather() { List<CompanyTrainingClassGather> list= 阅读全文
posted @ 2020-12-02 16:35 红尘沙漏 阅读(91) 评论(0) 推荐(0)
摘要: 获取当前月第一天: /** * 获取当前月第一天 * @param month * @return */ public static String getFirstDayOfMonth(int month) { Calendar calendar = Calendar.getInstance(); 阅读全文
posted @ 2020-11-25 11:38 红尘沙漏 阅读(7509) 评论(0) 推荐(0)
摘要: mybatis-plus 自定义SQL,XML形式,传参的几种方式 前提说明 所涉及文件 传参类型说明 1.Java代码中使用QueryWrapper动态拼装SQL 2.简单类型参数(如String,Long,Integer等),适用于固定且确定的参数 3.参数传入类型为Class类,或mybati 阅读全文
posted @ 2020-11-25 09:25 红尘沙漏 阅读(8896) 评论(1) 推荐(0)
摘要: Date ruZhi = new Date("入职年月bai"); Date now = new Date(); //算出du来时间夸格zhi多长 long shiChang = now.getTime()-now.getTIme(); //转换成天 int day = shiChang/(1000 阅读全文
posted @ 2020-11-23 10:06 红尘沙漏 阅读(1018) 评论(1) 推荐(0)
摘要: import java.util.Date; import java.util.Calendar; public int workAge(Date nowTime, Date workTime){ int year = 0; //当前时间的年月日 Calendar cal = Calendar.ge 阅读全文
posted @ 2020-11-23 10:04 红尘沙漏 阅读(856) 评论(0) 推荐(0)
摘要: public class TimerUtil { /** * 计算工龄 日期格式为yyyy-MM * @param t1 入职日期 * @param t2 当前日期 * @return XX年XX月 */ public static String gl(String t1,String t2) { 阅读全文
posted @ 2020-11-23 09:58 红尘沙漏 阅读(559) 评论(0) 推荐(0)
摘要: 代码实现PropertyAnno.java import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; imp 阅读全文
posted @ 2020-11-21 14:38 红尘沙漏 阅读(2887) 评论(1) 推荐(0)
摘要: 最近公司需求解析excel,一开始使用poi做的挺好的,后来直接上了几十万条数据的excel文件,内存直接溢出了,网上查到apache poi还提供了专门处理海量数据的方法,使用sax解析,果然用了内存使用率下降,但是不能解析xls文件,只能解析xlsx文件,所以把工具简单封装了一下,如果是xls的 阅读全文
posted @ 2020-11-20 15:06 红尘沙漏 阅读(2305) 评论(0) 推荐(0)
摘要: <!-- 0 0 10,14,16 * * ? 每天上午10点,下午2点,4点 0 0/30 9-17 * * ? 朝九晚五工作时间内每半小时 0 0 12 ? * WED 表示每个星期三中午12点 "0 0 12 * * ?" 每天中午12点触发 "0 15 10 ? * *" 每天上午10:15 阅读全文
posted @ 2020-11-19 10:14 红尘沙漏 阅读(3928) 评论(0) 推荐(0)
上一页 1 ··· 31 32 33 34 35 36 37 38 39 ··· 64 下一页