Java基础: List转Map集合: 1 class ConvertUtil { 2 3 private ConvertUtil() { 4 } 5 /** 6 * 将List转为Map 7 * 8 * @param list 原数据 9 * @param keyExtractor Key的抽取规 ...
分类:
其他好文 时间:
2021-06-04 19:46:56
阅读次数:
0
@NotEmpty 用在集合类上面加了@NotEmpty的String类、Collection、Map、数组,是不能为null或者长度为0的(String Collection Map的isEmpty()方法)@NotBlank只用于String,不能为null且trim()之后size>0@Not ...
分类:
其他好文 时间:
2021-06-04 19:22:27
阅读次数:
0
1.路由传值: 传值:this.$router.push({ path: '/a', query: { id:1, age:18 } }) //如点击时触发 接收:this.$route.query.id || this.$route.query.age 2.父组件找子组件拿值及其方法: 父: im ...
分类:
其他好文 时间:
2021-06-04 19:08:41
阅读次数:
0
一、增 单:传入实例即可 user := &User{Name: "XX"} db.Create(user) 列表: users := []User{{Name: "xx"},{Name: "XX1"},{Name: "XX2"}} db.Create(&users) 字典 db.Model(&Us ...
分类:
其他好文 时间:
2021-06-04 19:08:13
阅读次数:
0
一、什么是导航 导航就是路由正在发生变化 二、导航守卫、路由守卫、路由的钩子函数 路由发生变化时自动触发的一些函数 三、守卫有哪些 全局守卫(通过new Router出来的实例进行使用,在router/index.js中进行使用) 全局前置守卫:beforeEach() beforeEach((to ...
分类:
其他好文 时间:
2021-06-04 19:03:33
阅读次数:
0
1.上传jar到服务器的指定目录 2.在该目录下创建Dockerfile 文件 vi Dockerfile 3.编写Dockerfile FROM java:8-jdk MAINTAINER yy ADD map-1.0-SNAPSHOT.jar map.jar EXPOSE 8080 ENTRYP ...
分类:
编程语言 时间:
2021-06-04 19:02:42
阅读次数:
0
0: lambda x:x*3 lambad x,y=3:x*y 1:def findodd(x): if x%2 == 0 return None else: return x 2:几乎不用 3:a=list[filter((lambda x:not(x%3)),range(1,100))] 4: ...
分类:
其他好文 时间:
2021-06-04 18:55:40
阅读次数:
0
1.返回上一页 this.$router.go(-1) 2.返回上一页的指定页面 this.$router.push({ path: '/dashboard' }) ...
分类:
其他好文 时间:
2021-06-04 18:46:52
阅读次数:
0
HashMap 是一个散列表,它存储的内容是键值对(key-value)映射。 HashMap 实现了 Map 接口,根据键的 HashCode 值存储数据,具有很快的访问速度,最多允许一条记录的键为 null,不支持线程同步。 HashMap 是无序的,即不会记录插入的顺序。 HashMap 继承 ...
分类:
编程语言 时间:
2021-06-02 20:54:38
阅读次数:
0
中国地图 基本地图 import pandas as pd from matplotlib.colors import rgb2hex from mpl_toolkits.basemap import Basemap import matplotlib.pyplot as plt ### 1. 中国 ...
分类:
其他好文 时间:
2021-06-02 19:40:47
阅读次数:
0