08 2022 档案

摘要://最大值 int maxValue = list.stream().mapToInt(User::getScore).max().getAsInt(); long maxValue = list.stream().mapToLong(User::getScore).max().getAsLong( 阅读全文
posted @ 2022-08-29 18:18 一隅桥畔 阅读(1766) 评论(0) 推荐(1) 编辑
摘要://导出excel文件 exportExcel() { applyOrderExportExcel(this.listQuery).then((res) => { const fileName = `${+new Date()}.xlsx`; const blob = new Blob([res], 阅读全文
posted @ 2022-08-24 14:36 一隅桥畔 阅读(446) 评论(0) 推荐(0) 编辑
摘要://调整高度函数 function setHeight(element) { //通过css属性,将元素高度设置为文本高度 $(element).css({'height':'auto','overflow-y':'hidden'}).height(element.scrollHeight); } 阅读全文
posted @ 2022-08-12 19:50 一隅桥畔 阅读(630) 评论(0) 推荐(0) 编辑
摘要:List<User> userList = new ArrayList<>(); //list集合中获取code集合 List<String> codeList = userList.stream().map(i -> i.getCode()).collect(Collectors.toList() 阅读全文
posted @ 2022-08-12 16:41 一隅桥畔 阅读(4700) 评论(0) 推荐(0) 编辑
摘要:如何使用git把本地代码上传到远程仓库 Git 全局设置:git config --global user.name "xxx"git config --global user.email "xxx@163.com" 初始化git init 查看当前仓库状态git status 将本地的仓库关联到远 阅读全文
posted @ 2022-08-11 00:16 一隅桥畔 阅读(207) 评论(0) 推荐(0) 编辑
摘要:-- 1、匹配一个字段 比如user_name select * from tb_user where user_name like '%'+ #{keyWord} +'%'; select * from tb_user where user_name like concat('%',#{keyWo 阅读全文
posted @ 2022-08-10 23:53 一隅桥畔 阅读(4973) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1 阅读全文
posted @ 2022-08-05 17:30 一隅桥畔 阅读(2652) 评论(0) 推荐(0) 编辑
摘要:<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>2.3.2</version> <configuration> <source>1 阅读全文
posted @ 2022-08-05 17:16 一隅桥畔 阅读(483) 评论(0) 推荐(0) 编辑
摘要://编译或打包时报错,需要在pom.xml文件中加上下面内容 <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>2.22.2</ve 阅读全文
posted @ 2022-08-05 17:11 一隅桥畔 阅读(346) 评论(0) 推荐(0) 编辑
摘要:1.操作步骤需要严格执行如下顺序:commit->pull->push2.commit:将代码提交到本地仓库。3.pull:将远程仓库代码同步到本地仓库。如遇冲突,解决冲突,重复commit->pull,直到没有冲突。4.push:将本地仓库代码提交到远程仓库。 具体讨论可参看《Git的commit 阅读全文
posted @ 2022-08-05 16:57 一隅桥畔 阅读(1521) 评论(0) 推荐(0) 编辑
摘要://数组转集合 String[] strArr = {"AA","BB","CC"}; List<String> list = Arrays.asList(strArr); //集合转数组 List<String> list = new ArrayList<>(); list.add("AA"); 阅读全文
posted @ 2022-08-03 00:11 一隅桥畔 阅读(444) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示