Arrays.asList(),Collection.toArray() 使用的问题

Arrays.asList()使用指南1,简介最近使用Arrays.asList()遇到了一些坑,然后就学习了一下Arrays.asList()在平时开发中还是比较常见的,我们可以使用它将一个数组转换为一个List集合。String[] myArray = { "Apple", "Banana", "Orange" }; List<

- 阅读全文 -

SpringBoot 加载配置文件的优先级

SpringBoot 加载配置文件的优先级classpath:/ -- 优先级4. The classpath rootclasspath:/config/ -- 优先级3. A classpath /config packagefile:./ -- 优先级2. The current directoryfile:./config/ -- 优先级1. A /config subdirectory

- 阅读全文 -

大白话讲解技术专业用语。

很多同学对热备,冷备,云备了解不深,我科普一下IT行业各种备份术语。以后别闹笑话了。假设你是一位女性,你有一位男朋友,于此同时你和另外一位男生暧昧不清,比朋友好,又不是恋人。你随时可以甩了现任男友,另外一位马上就能补上。这是冷备份。假设你是一位女性,同时和两位男性在交往,两位都是你男朋友。并且他们还互不干涉,独立运行。这就是双机热备份。假设你是一位女性,不安于男朋友给你的安全感。在遥远的男友未知的

- 阅读全文 -

CentOS 7 安装 qBittorrent

CentOS 7 安装 qBittorrent编译安装太繁琐、坑多。1,系统CentOS 7 执行以下命令。sudo yum install qbittorrent-nox.x86_642,创建systemctl脚本sudo vi /usr/lib/systemd/system/qbittorrent.service使用vi、vim编辑,输入以下内容。[Unit] Description=qbit

- 阅读全文 -

CentOS 安装 Transmission

CentOS 安装 Transmission1,centos 6需要添加源# RHEL/CentOS 6 x64 wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -ivh epel-release-6-8.noarch.rpm # RHEL/CentOS 6 x86

- 阅读全文 -