`
larnsan
  • 浏览: 4584 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
  原因为:eclipse导出的jar本身就是乱码。 产生jar乱码原因:项目为utf-8,在导出时,如重新编译了一次,使用的是系统默认编码,所以产生乱码。 解决:eclipse导出时可以设置不重新编译,而是使用编译好的代码,如图: 在导出的选项设置中,选择 Options-->勾选 use class files compiled in the workspace  
java代码比较简单,可是使用开源的类库 如https://github.com/notnoop/java-apns 估计卡住的人通常是和apns握手失败。这原因主要是java、.net和mac的ssl连接区别. java需要把下载的文件再次转换才可以使用。 参考: 1、将aps_developer_identity.cer转换成 aps_developer_identity.pem格式。 openssl x509 -in aps_developer_identity.cer -inform DER -out aps_developer_identity.pem -outform P ...
Global site tag (gtag.js) - Google Analytics