//测试jdk代理机制 @Test public void testProxy(){ final UsbDisk usbDisk = new UsbDisk(); //类加载器,接口,匿名内部类 //disk是代理对象 Disk disk =(Disk) Proxy.newProxyInstance(usbDisk.getClass().getClassLoader() ,usbDisk.getClass().getInterfaces() , new InvocationHandler() {
背景 将docker的服务器环境切换到新的网络之后,由于服务器的internet是受限制的(需要连接配置远程代理,不能直接上网).因此,在使用docker连接docker hub 的时候,就会出错: 错误细节如下: [root@CNCGTCFS76 system]# docker login Login with your Docker ID to push and pull images from Docker Hub. If you don't have a Docker ID, head
编译curl,libcurl 下载curl源码(git clone https://github.com/curl/curl),在目录curl\winbuild\BUILD.WINDOWS.txt文件中,详细介绍了使用nmake编译windows下curl及libcurl库的相关命令,摘录如下: nmake /f Makefile.vc mode=<static or dll> <options> where <options> is one or many of: V
测试本地的WebApi接口时,接口是https,自己写的用httpclient测试是可以的, 用postman一直连接不了.原因正是由于https,不过postman在界面上已经给出了可能的原因和解决方法: Self-signed SSL certificates are being blocked:Fix this by turning off 'SSL certificate verification' in Settings > General 设置里把这个SSL 证书相关的选项给关掉就可