Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wecloud_im_server
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
wecloud_im_server
Commits
7b13a0fe
Commit
7b13a0fe
authored
Oct 26, 2021
by
giaogiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
读取系统文件目录 生成apns字符串
parent
e5020e24
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
+26
-0
bootstrap/src/test/java/io/geekidea/springbootplus/test/ApnsTest.java
+26
-0
No files found.
bootstrap/src/test/java/io/geekidea/springbootplus/test/ApnsTest.java
0 → 100644
View file @
7b13a0fe
package
io
.
geekidea
.
springbootplus
.
test
;
import
cn.hutool.core.codec.Base64
;
import
org.junit.Test
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.InputStream
;
/**
* 读取系统文件目录 生成apns字符串
*/
public
class
ApnsTest
{
@Test
public
void
test
()
throws
Exception
{
File
file
=
new
File
(
"/Users/giaogiao/Downloads/push_zixun.p12"
);
InputStream
certificate
=
new
FileInputStream
(
file
);
String
encode
=
Base64
.
encode
(
certificate
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment