Markdown快速入门(typora) 1、代码块: // 代码块语法 ?```Java(语言类型) ?```shell 1.java代码块 public class HelloWorld { public static void main(String []args) { System.out. ...
分类:
其他好文 时间:
2021-05-24 08:54:58
阅读次数:
0
在最近项目中,由于netty服务地址从路由中心远程调用,在netty服务挂了之后,路由中心不能够实时监控到,仍然保留netty地址,这时需要使用netty服务时候 需要知道netty服务地址是真的可用,这里用socket方式来检测netty服务的远程端口是否可用 public static bool ...
分类:
编程语言 时间:
2021-05-24 08:48:07
阅读次数:
0
命令模式 public interface Command { void execute(); } ? public class CommandA implements Command{ public void execute() { System.out.println("a执行了"); } } ...
分类:
其他好文 时间:
2021-05-24 08:31:58
阅读次数:
0
i++:先引用后加 ++I:先加后引用 示例代码: public static void main(String... args) { int a = 88; int c = a++; System.out.println(a); System.out.println(c); int b = 99; ...
分类:
其他好文 时间:
2021-05-24 08:08:47
阅读次数:
0
ThreadLocal 分析 首先我们看一下下面这个程序 public class ThreadLockDemo { //初始tl per对象名是 zs static ThreadLocal<per> tl = new ThreadLocal<per>() { protected per initi ...
分类:
其他好文 时间:
2021-05-24 07:59:20
阅读次数:
0
什么是方法 方法定义 方法调用 方法重载 方法类型也可相同,只要参数类型不同就行, 例: public static void main(String[] args) { double sum1 = add(6.0,2); System.out.println(sum1); } public sta ...
分类:
编程语言 时间:
2021-05-24 07:38:03
阅读次数:
0
如是Web程序,则修改客户端Web.config 做如下修改: //注意是客户端 <system.serviceModel> <bindings> <basicHttpBinding> <binding name="ClientSoap" maxBufferSize="2147483647" max ...
分类:
其他好文 时间:
2021-05-24 06:51:00
阅读次数:
0
先用ifconfig br_name down 停掉网桥 再用brctl delbr br_name 删除网桥 为了方便,我编写了shell脚本来删除网桥 #!/bin/bash #本脚本删除的是br-开头的网桥 BRIDGE_LIST=$(sudo brctl show | cut -f 1 | ...
分类:
其他好文 时间:
2021-05-24 06:19:17
阅读次数:
0
Log4j的使用 简介: Log4j是Apache的一个开源项目 通过使用Log4j,我们可以控制日志信息输送的目的地:控制台,文本,GUI组件.... 我们也可以控制每一条日志的输出格式; 通过定义每一条日志信息的级别,我们能够更加细致地控制日志的生成过程。最令人感兴趣的就是,这些可以通过一个配置 ...
分类:
其他好文 时间:
2021-05-24 06:10:43
阅读次数:
0
[System.Runtime.InteropServices.DllImport("user32.dll", CharSet =System.Runtime.InteropServices.CharSet.Auto, ExactSpelling =true)] public static exte ...