import lombok.*; /** * @author: Small sunshine * @Description: * @date: 2021/6/30 8:05 下午 */ public class SortTree { public static void main(String[] ...
分类:
其他好文 时间:
2021-07-01 17:04:50
阅读次数:
0
第14行代码输出的结果是1020 第15行代码输出的结果是30 代码(“”)是字符串 String 字符串在前则会对后面的结果进行拼接 字符串在后则对结果直接相加 三元运算符 ...
分类:
其他好文 时间:
2021-07-01 16:52:06
阅读次数:
0
Sublime Text批量删除空白行 替换处理 CTRL+H 打开 replace 功能,勾选上左侧的 regular expression,并填写 find what栏: \s+$ (正则表达式) replace with栏: (这行留空) 接着点 replace all 修改保存时配置 点击菜 ...
分类:
其他好文 时间:
2021-07-01 16:49:01
阅读次数:
0
一、依赖倒转原则介绍 二、依赖倒转原则引入 1.方式一(传统方式) public class DependencyInversion { public static void main(String[] args) { Person person = new Person(); person.rec ...
分类:
其他好文 时间:
2021-07-01 16:40:10
阅读次数:
0
一、单一职责原则介绍 二、单一职责原则引入 1.方式一(违反了单一职责原则) 解析:摩托车、汽车是公路上运行的,但飞机并不是在公路上运行的。 public class SingleResponsibility1 { public static void main(String[] args) { / ...
分类:
其他好文 时间:
2021-07-01 16:31:05
阅读次数:
0
1、当前集群状态 [kingbase@ECOLABAPP37 bin]$ ./repmgr cluster show ID | Name | Role | Status | Upstream | Location | Priority | Timeline | Connection string + ...
分类:
其他好文 时间:
2021-07-01 16:27:49
阅读次数:
0
string.IsNullOrEmpty:只能控制null和""string.IsNullOrWhiteSpace:控制null、""、" "(引号里面带空格) ...
分类:
其他好文 时间:
2021-06-30 18:35:25
阅读次数:
0
RestTemplate String url = "http://aaa.com"; URI uri = URI.create(url); post请求无参数 JSONObject jsonObject = restTemplate.postForObject(uri, "{}", JSONObj ...
分类:
其他好文 时间:
2021-06-30 18:30:07
阅读次数:
0
public static String getCodeOfFive(String prefix, int nowNum) { //需要返回的code StringBuilder codeSb = new StringBuilder(); //需要拼接的数字 StringBuilder numSb ...
分类:
其他好文 时间:
2021-06-30 18:24:06
阅读次数:
0
GET GET单参数 服务器 [OperationContract] string GetOneParameter(string value); [WebInvoke(Method = "GET", UriTemplate = "GetOneParameter/{value}", ResponseF ...
分类:
其他好文 时间:
2021-06-30 18:18:42
阅读次数:
0