cat CentOS-Base.repo # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to p ...
分类:
其他好文 时间:
2021-07-19 16:46:42
阅读次数:
0
Ⅷ、Collections 工具类 java.util.Collections Collections 集合工具类,用来对集合进行操作,部分重要方法如下: 1.public static <T> boolean addAll(Collection<T> c,T... elements); 往集合中添 ...
分类:
其他好文 时间:
2021-07-19 16:42:35
阅读次数:
0
一、什么是泛型? 泛型是一种未知的数据类型,当我们不知道要使用什么数据类型的时候,可以使用泛型。 泛型也可以看成是一个变量,用来接收数据类型 E e:Element 元素 T t:type 类型 如: 1 public class ArrayList<E>{ 2 public boolean add ...
分类:
编程语言 时间:
2021-07-19 16:42:15
阅读次数:
0
#Springboot-微服务-微服务组件之服务管理-eureka-消费端调用服务 微服务现在大部分的调用方式都是rest风格的调用方式也就常见的http,当然也还有另一种方式就是RPC 认识RPC RPC,即 Remote Procedure Call(远程过程调用),是一个计算机通信协议。 该协 ...
分类:
编程语言 时间:
2021-07-19 16:37:51
阅读次数:
0
public static void main(String[] args) { int[] aa = {5, 86, 21, 231, 4, 3, 1, 74}; paixu(aa); printaaaa(aa);}public static void paixu(int[] aa) { for ...
分类:
编程语言 时间:
2021-07-19 16:29:05
阅读次数:
0
CentOS7查看开放端口命令及开放端口号 查看已开放的端口 firewall-cmd --list-ports 开放端口(开放后需要要重启防火墙才生效) firewall-cmd --zone=public --add-port=3338/tcp --permanent 重启防火墙 firewal ...
分类:
其他好文 时间:
2021-07-16 17:42:16
阅读次数:
0
<?php highlight_file(__FILE__); class emmm { public static function checkFile(&$page) { $whitelist = ["source"=>"source.php","hint"=>"hint.php"]; if ( ...
分类:
其他好文 时间:
2021-07-16 17:40:01
阅读次数:
0
1.打开CMD win键+R 2.windows常用Dos命令 #切换盘符 d/D: #查看当前目录 dir #切换目录 cd /d 盘符:/目录名 cd .. #清理屏幕 cls #退出终端 exit #查看ip ipconfig(/all) #ping ping 网址 #创建目录 md #创建文 ...
1.if..else public int calculate(int a, int b, String operator) { int result = Integer.MIN_VALUE; if ("add".equals(operator)) { result = a + b; } else ...
分类:
其他好文 时间:
2021-07-15 18:58:38
阅读次数:
0
== equals是两种字符串的方式 区别 == 是比较两个对象的引用地址值 equals是比较两个对象的具体内容 示例 package com.oop.demo06; public class Demo01 { public static void main(String[] args) { St ...
分类:
其他好文 时间:
2021-07-14 18:50:51
阅读次数:
0