上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: Stream API 一.创建Stream //1.Colleaction系列集合提供 List<String> list = new ArrayList<>(); Stream<String> stream = list.stream(); //2.Arrays的静态方法stream(); Emp 阅读全文
posted @ 2022-06-24 18:17 Arborblog 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 方法引用 Lambda有方法已经完成了 1.对象::实例方法名 //案例1: Consume<String> consume = (x) -> System.out.println(x); //方法的参数类型和返回值要和要引用的方法的参数类型和返回值一致 PrintStream ps = Syste 阅读全文
posted @ 2022-06-24 14:32 Arborblog 阅读(41) 评论(0) 推荐(0) 编辑
摘要: Lambda语法格式 1.无参,无返回值 Runnable runnable = () -> System.out.println("无参,无返回值"); runnable.run(); 2.一个参数,无返回值--只有一个参数小阔号可以不写 Consumer<String> consumer = ( 阅读全文
posted @ 2022-06-24 11:44 Arborblog 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 简单的Lambda表达式 import org.junit.Test; import java.util.Comparator; //Arbor 2022/6/24 public class TestLambda { //匿名内部类 @Test public void test1(){ Compar 阅读全文
posted @ 2022-06-24 11:04 Arborblog 阅读(20) 评论(0) 推荐(0) 编辑
摘要: 创建条件接口,定制实现接口方法,写调用的条件接口的方法,调用方法时将实现类传入 实体类: import lombok.Data; //Arbor 2022/6/24 @Data //lombok注解的生成get,set... public class Employee { String name; 阅读全文
posted @ 2022-06-24 10:56 Arborblog 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 1. 使用Mustache语法(即双大括号{{ }}) DOM: <div id="app"> <h2>{{message}}</h2> <h2>{{message}}, 李**!</h2> <!--mustache语法中,不仅仅可以直接写变量,也可以写简单的表达式--> <h2>{{firstNa 阅读全文
posted @ 2022-06-23 10:17 Arborblog 阅读(805) 评论(0) 推荐(0) 编辑
摘要: <div id="my-profile" v-cloak> <a :href="user.homepage" class="my-logo-container"><img :src="user.avatar" class="my-logo" /></a> <div class="my-name-co 阅读全文
posted @ 2022-06-23 10:13 Arborblog 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 通过docket进行设置配置swagger,里面要的东西都可自己new一个类似的对象然后放进去 例如这个apiInfo对象 package com.***.config; import org.springframework.beans.factory.annotation.Value; impor 阅读全文
posted @ 2022-06-21 16:15 Arborblog 阅读(33) 评论(0) 推荐(0) 编辑
摘要: json web token 的缩写 阅读全文
posted @ 2022-06-21 15:24 Arborblog 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1、首先打开Ubuntu的终端命令行 要使用bash命令,我们需要打开终端工具,使用“alt+t”快捷键打开终端,也可以使用鼠标点击终端工具; 2、查看当前防火墙状态 使用sudo ufw status命令查看当前的防火墙状态:inactive状态是防火墙关闭状态 active是开启状态。 3、开启 阅读全文
posted @ 2022-06-21 14:30 Arborblog 阅读(7448) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页