主键生成策略 @TabelID uuid 自增ID 雪花算法 mybatis-plus 的主键策略 package com.baomidou.mybatisplus.annotation; public enum IdType { AUTO(0), //数据库自增ID 记住表ID字段一定是自增的 N ...
分类:
其他好文 时间:
2021-04-20 15:05:56
阅读次数:
0
You are given 2 arrays a and b, both of size n. You can swap two elements in b at most once (or leave it as it is), and you are required to minimize t ...
分类:
移动开发 时间:
2021-04-20 15:01:50
阅读次数:
0
1.当前路由传递对象参数 (1)通过this.$router.push传递 var arr = JSON.stringify(this.user) this.$router.push({name:'home',params:{user:encodeURIComponent(arr)}}) this. ...
分类:
其他好文 时间:
2021-04-20 14:26:59
阅读次数:
0
思路:搭建环境-->导入Mybatis-->编写代码-->测试!### 2.1、搭建环境搭建数据库```javaCREATE DATABASE `mybatis`;USE `mybatis`;CREATE TABLE `user`( `id` INT(20) NOT NULL PRIMARY KEY ...
分类:
其他好文 时间:
2021-04-19 15:58:15
阅读次数:
0
软解: AV_PIX_FMT_YUV420P10LE in fmt:64IN Y :0x7f45280084c0074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074.00 074 ...
分类:
其他好文 时间:
2021-04-19 15:05:14
阅读次数:
0
1. kafka介绍 1.1. 主要功能 根据官网的介绍,ApacheKafka®是一个分布式流媒体平台,它主要有3种功能: 1:It lets you publish and subscribe to streams of records.发布和订阅消息流,这个功能类似于消息队列,这也是kafka ...
分类:
其他好文 时间:
2021-04-19 14:59:09
阅读次数:
0
在使用Log4j的类中导入包 import org.apache.log4j.Logger; 日志对象,参数为当前类的class static Logger logger = Logger.getLogger(UserDaoTest.class); //LogDemo为相关的类 日志级别: logg ...
分类:
其他好文 时间:
2021-04-19 14:56:03
阅读次数:
0
一、设计模式六大原则 1.开闭原则:对扩展开放,对修改关闭,。 例子: course类里面有price字段,getPrice方法,如果想要打折促销,就需要改变price字段或者getPrice方法。 我们可以新建一个CourseCount类继承course类,里面的getPrice方法调用父类的ge ...
分类:
其他好文 时间:
2021-04-19 14:47:20
阅读次数:
0
ResorceBundle(资源绑定器) 绑定配置文件 jdbc.proprtise 需要在src目录下新建一个文件夹然后将jdbc.proprtise放在文件中然后右键该文件夹选择 Rebuild Config。 在引用该配置文件的时候不需要加后缀名。 代码 import java.sql.Con ...
分类:
数据库 时间:
2021-04-19 14:35:44
阅读次数:
0
/* * Copyright (c) 2015 Paul B Mahol * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under th ...
分类:
其他好文 时间:
2021-04-16 12:07:43
阅读次数:
0