上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 57 下一页
摘要: websocket通信是很好玩的,也很有用的的通信方式,使用方式如下: 第一步由于springboot很好地集成了websocket,所以先在在pom.xml文件中引入依赖 <dependency> <groupId>org.springframework.boot</groupId> <artif 阅读全文
posted @ 2021-02-19 16:30 红尘沙漏 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 需要加两个注解 @DateTimeFormat(pattern = "yyyy-MM-dd") @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8") 阅读全文
posted @ 2021-02-19 10:55 红尘沙漏 阅读(779) 评论(0) 推荐(0) 编辑
摘要: 这个神奇的问题困扰了我半天,明明和我之前的写入Excel方法几乎一样,以前可以,这次怎么都不成功,都是只有表头没有数据。 网上也找不到解决方法,反复测试之后终于解决这个坑爹问题,记录一下。如果有人也遇到,可以参考。 直接说结论: 原因是我javabean上用到了@Data注解,并且里面的字段名是类似 阅读全文
posted @ 2021-02-18 16:26 红尘沙漏 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: /* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, 阅读全文
posted @ 2021-02-04 11:37 红尘沙漏 阅读(92) 评论(0) 推荐(0) 编辑
摘要: 引入 jar 包 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>1.1.2-beta5</version> </dependency> public static voi 阅读全文
posted @ 2021-01-29 15:37 红尘沙漏 阅读(5171) 评论(0) 推荐(0) 编辑
摘要: /** * 分页查询 * @param entity * @return */ @GetMapping("getPageList") public R<IPage<ConsumptionMachineVO>> getPageList(@ApiIgnore @RequestParam Map<Stri 阅读全文
posted @ 2021-01-28 15:18 红尘沙漏 阅读(515) 评论(0) 推荐(0) 编辑
摘要: package org.springblade.consumption.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java. 阅读全文
posted @ 2021-01-28 13:43 红尘沙漏 阅读(49) 评论(0) 推荐(0) 编辑
摘要: /* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, 阅读全文
posted @ 2021-01-28 13:41 红尘沙漏 阅读(136) 评论(0) 推荐(0) 编辑
摘要: /** * 报餐对比 * @param mealType * @param posoptime * @return */ @Override public List<ConsumptionMachine> getMealComparison(String mealType, Date posopti 阅读全文
posted @ 2021-01-26 16:39 红尘沙漏 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1.if语句 如果empno不为空,则在WHERE参数后加上AND empno = #{empno},这里有1=1所以即使empno为null,WHERE后面也不会报错。 映射文件 <select id="getEmpById2" resultType="emp"> SELECT * FROM em 阅读全文
posted @ 2021-01-26 09:25 红尘沙漏 阅读(148) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 57 下一页