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