Jackson 将null转成"" @Configuration public class JacksonConfig { @Bean @Primary @ConditionalOnMissingBean(ObjectMapper.class) public ObjectMapper jackson ...
分类:
编程语言 时间:
2020-11-01 22:18:09
阅读次数:
26
10.19 27. 01矩阵 给定一个由 0 和 1 组成的矩阵,找出每个元素到最近的 0 的距离。 两个相邻元素间的距离为 1 。 输入 0 0 0 0 1 0 0 0 0 输出 0 0 0 0 1 0 0 0 0 输入 0 0 0 0 1 0 1 1 1 输出 0 0 0 0 1 0 1 2 1 ...
分类:
其他好文 时间:
2020-11-01 21:59:05
阅读次数:
15
递归算法 { if(bt!=NULL) { InOrder(bt->lchild); printf("%d",bt->data); InOrder(bt->rchild); } } 非递归算法 Void InOrder(BTNode *bt) { BTNode *p=bt; int top =0; ...
分类:
其他好文 时间:
2020-11-01 21:18:59
阅读次数:
20
分享是价值的传递,喜欢就点个赞 引言 今天我们继续来深入的剖析类加载器的内容。上节课我们讲了类加载器的基本内容,没看过的小伙伴请加关注。今天我们继续。 什么是定义类加载器和初始化类加载器? 定义类加载器:假设我们的某一个类是由ExtClassLoader加载的,那么ExtClassLoader称为该 ...
分类:
其他好文 时间:
2020-11-01 10:35:29
阅读次数:
12
SpringBoot整合MyBatis 创建一个SpringBoot项目 需要的pom依赖列表如下图右侧: 准备数据 create database nyf; USE nyf; CREATE TABLE category_ ( id int(11) NOT NULL AUTO_INCREMENT, ...
分类:
编程语言 时间:
2020-11-01 10:10:59
阅读次数:
18
今天尝试使用索引来提升查找效率,因此使用mysql进行实验,然后创建了一个表,往里面随机插入100万条数据。使用的是linux环境下的mysql,数据库连接软件是navicat。 使用里面包含tableid,userid等,这是创建表的语句。 CREATE TABLE user ( `tableid ...
分类:
数据库 时间:
2020-11-01 09:47:09
阅读次数:
25
EXEC sp_addlinkedserver @server='servername',--被访问的服务器别名 @srvproduct='',--SqlServer默认不需要写 @provider='SQLOLEDB', --不同的库都是不一样的 @datasrc='192.168.0.1' -- ...
分类:
数据库 时间:
2020-10-31 01:50:49
阅读次数:
25
字节输出流: OutputStream此抽象类,是表示输出字节流的所有类的超类。以Stream结尾的都是输出字节流。 成员方法: FileOutputStream类: OutputStream有很多子类,其中子类FileOutputStream可用来写入数据到文件。FileOutputStream类 ...
分类:
其他好文 时间:
2020-10-31 01:47:29
阅读次数:
21
给定一个二叉树,返回它的 前序 遍历。 示例: 输入: [1,null,2,3] 1 \ 2 / 3 输出: [1,2,3] 进阶: 递归算法很简单,你可以通过迭代算法完成吗? 递归: 思路: 1.先序遍历,采用的是先根,再左,再右的方式 2.而在访问左子树或者右子树的时候,我们按照同样的方式遍历, ...
分类:
其他好文 时间:
2020-10-31 01:34:45
阅读次数:
19
说明 array_column ( array $input , mixed $column_key [, mixed $index_key = null ] ) : array array_column() 返回input数组中键值为column_key的列, 如果指定了可选参数index_key ...
分类:
编程语言 时间:
2020-10-29 10:19:33
阅读次数:
25