删除Document中的键值对 删除Document中的键值对Iterator<Map.Entry<String, Object>> it = j.entrySet().iterator();while (it.hasNext()){Map.Entry<String, Object> temp = it.next();if (temp.getValue().toString().length()<1){it.remove();}}System.out.println(j.toJSO
报错:axis2.AxisFault: Transport error: 401 Error: Unauthorized axis2.AxisFault: Transport error: 401 Error: UnauthorizedWebService项目WSDL生成代码之后传数据报错,需要添加用户名和密码,多次调试找到了个可行的方法。解决方法:SI_03DU6_ZHTJFXXT2ERP_XMJBXXServiceStub stub = new SI_03DU6_ZHTJFXXT2ERP_XMJBXXServiceStub();HttpTransportPropertiesImpl.Authenticator
报错:NoSuchAlgorithmException: Algorithm HmacSHA1 not available 报错:NoSuchAlgorithmException: Algorithm HmacSHA1 not available有个项目需要部署到Linux上运行,其中使用到了MongoDB链接并添加了用户和密码,项目在Win环境运行没有问题。放到Linux上之后,一直报错用户名或密码不对。多次调试Win环境没问题,一到Linux就报错,(报错信息角落:NoSuchAlgorithmException: Algorithm HmacSHA1 not available不太容易注意到)。解决方法: 在