摘要: 普通的stream流,toMap方法会调用merge方法,该方法如果value传值为null的时候,会报空指针异常,因此直接使用collect()方法进行规约操作 public static void main(String[] args) { Map<String, String> testMap 阅读全文
posted @ 2023-09-20 09:29 ContinueW 阅读(248) 评论(0) 推荐(0) 编辑
摘要: 代码需要下载一个模板,并且有两列数据是需要有级联效果,类似选择第一列选择山东,第二列只能选择济南、青岛,第一列选择河南,第二列只能选择郑州、洛阳这样的需求 public ResponseEntity<Resource> downloadSecondTemplate(@RequestParam Str 阅读全文
posted @ 2023-09-19 16:16 ContinueW 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 目前做到了一个需求,需要用到课表,对课堂内容进行管理,但是存在很多的合堂课,需要多节课连续上下来,因此下图1的课表需要连续操作多节课。如果连堂课的单元格进行合并,可以有效解决这个问题,如图2 图1 图2 代码: <!DOCTYPE html> <html> <head> <meta charset= 阅读全文
posted @ 2020-07-28 16:35 ContinueW 阅读(390) 评论(0) 推荐(0) 编辑
摘要: 这样实现最右侧列固定不动,其他列可以左右滑动 同时出现上下滚动条时可以正常上下滚动 代码如下: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style> table { border-collapse: 阅读全文
posted @ 2020-06-18 16:35 ContinueW 阅读(1963) 评论(0) 推荐(1) 编辑
摘要: 近期有几个网站需要适配手机端,直接访问会导致有些地方的样式错乱,增加了meta标签 <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, ini 阅读全文
posted @ 2020-06-04 10:05 ContinueW 阅读(61) 评论(0) 推荐(0) 编辑
摘要: select * from (select * from jw_xsxxb order by sys_guid()) where rownum < X; --在表中随机获得x条数据 update journalarticle t set t.content = replace (t.content 阅读全文
posted @ 2020-06-04 09:54 ContinueW 阅读(22) 评论(0) 推荐(0) 编辑