- 博客(14)
- 收藏
- 关注
原创 Java时间戳和时区的转换
srcTimeZone为服务器所在的时区。destTimeZone为目标转换时区。convertDateBetweenTimeZone为转换函数,输入需要转换的目标时区,和时间戳,返回目标时区的时间戳对应时间import java.text.DateFormat;import java.text.SimpleDateFormat;import java.util....
2019-07-03 17:56:28
7826
原创 org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 的解决方法
axis调用webservice如果报错信息为: org.apache.axis2.databinding.ADBException: Unexpected subelement arg0 ,只需加入call.setOperation(_operations[1]);问题就解决了。package com.zte.eas.ws.pop;import java.net.URL;im
2017-10-02 14:22:58
3877
原创 Java mail 邮件发送 附件文件名过长的问题 版本1.5及以上
在使用javamail 1.5版本的时候,如果附件文件名过长,会错误显示为“未命名的附件 00439.dat”解决方案如下:一、Javamail jar包退回1.4版本或者二、修改参数mail.mime.splitlongparameters为 false1、添加以下红色代码messageBodyPart.setFileName(MimeUtility.enco...
2017-04-05 18:36:11
7265
原创 Mongdb 3.4 复制集 分片 官方默认配置 无认证 Windows环境
官方链接:http://docs.mongoing.com/manual-zh/tutorial/convert-replica-set-to-replicated-shard-cluster.html数据复制集rs0:mongodb0.example.net:26001mongodb1.example.net:26002mongodb2.example.net:260
2017-01-06 17:09:52
1156
转载 Mongodb 3.2 Java 显示指定字段 条件查询 官方
MongoDB Driver Tutorials Read OperationsFind OperationsFind operations retrieve documents from a collection. You can specify a filter to select only those documents that match the filter c
2017-01-05 21:21:36
9850
原创 Mongdb 3.2 复制集配置 官方默认配置 启用认证 Windows环境
步骤:1、更新hosts文件路径:C:\Windows\System32\drivers\etc在hosts文件里添加:xxx.xxx.xxx.xxx mongodb0.example.netxxx.xxx.xxx.xxx mongodb1.example.netxxx.xxx.xxx.xxx mongodb2.example.net
2017-01-03 11:35:43
950
转载 Mongodb 3.2 官方 启用认证
Enable AuthOn this pageOverviewUser AdministratorProcedureOverviewEnabling access control on a MongoDB deployment enforcesauthentication, requiring users to identify themselves. When a
2017-01-02 15:25:04
780
原创 Mongdb 3.2 复制集配置 官方默认配置 无认证 Windows环境
步骤:1、更新hosts文件路径:C:\Windows\System32\drivers\etc在hosts文件里添加:127.0.0.1 mongodb1.example.net127.0.0.1 mongodb2.example.net2、添加文件夹路径:D:\MongoDB\data添加3个文件夹db26001,db26002,
2016-12-30 14:40:12
596
转载 数字签名和数字证书
到底什么是“数字签名”(digital signature)和“数字证书”digital certificate)?对这些问题的理解,一直模模糊糊,很多细节搞不清楚。 今天,读完一篇通俗易懂的文章后,思路豁然开朗。为了加深记忆,这篇文章的翻译版记录如下。原理1. 鲍勃有两把钥匙,一把是公钥,另一把是私钥。 2. 鲍勃把公钥送给他的朋友们----帕蒂、道格、苏珊--
2016-12-28 18:57:54
363
转载 Mongodb 3.2 SQL到MongoDB映射表 官方
SQL到MongoDB映射表On this page术语和概念可执行文件示例Additional Resources针对以下图表,你可能会考虑查看 常见问题 章节查询一些关于MongoDB的常用问题。术语和概念下表中列出了多个SQL中的术语和概念以及相对应的MongoDB中的术语和概念。SQL 术语/概念MongoDB 术
2016-12-22 13:44:37
1117
转载 Mongodb 3.2 SQL对应聚合 官方
SQL to Aggregation Mapping Chart¶On this pageExamplesAdditional ResourcesThe aggregation pipeline allowsMongoDB to provide native aggregation capabilities that corresponds tomany common
2016-12-21 15:35:44
471
转载 Mongodb 3.2 Java 显示指定字段 条件查询 分页排序
package com.tesco.mongodb.test;import java.util.logging.Level;import java.util.logging.Logger;import org.bson.Document;import org.json.JSONObject;import com.mongodb.BasicDBObject
2016-12-21 14:27:08
5985
原创 JavaMail 实例
首先要设置邮箱:邮箱设置常规 [color=black][b][size=x-large]帐户[/size][/b][/color] 换肤 反垃圾 邮件过滤 我的邮件夹 代收邮箱 手机邮箱 POP/SMTP设置 □ 开启 [b][color=red]...
2010-01-08 15:58:05
123
原创 java.lang.NoSuchMethodError: javax/servlet/jsp/PageContext.getELContext()Ljavax/
在Tomcat上测试通过,部署到Unix上的WebLogic 9.2 上,就出现如题的错误,应该是c标签应用出错。 解决方案如下:不论在哪里部署,都要jstl-1.2.jar 包 在Tomcat 上部署 去掉el-api.jar 包,否则会报错在WebLogic 9.2 上部署 加上el-api.jar 和 standar...
2010-01-05 14:13:53
246
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人