Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
head_group
xyqb-user2
Commits
1f876e54
Commit
1f876e54
authored
Aug 10, 2018
by
技术部-任文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test
parent
449cacfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
JsonTest.java
src/test/java/common/JsonTest.java
+8
-0
No files found.
src/test/java/common/JsonTest.java
View file @
1f876e54
...
@@ -2,6 +2,8 @@ package common;
...
@@ -2,6 +2,8 @@ package common;
import
java.sql.Timestamp
;
import
java.sql.Timestamp
;
import
org.apache.commons.codec.binary.Base64
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
import
com.alibaba.fastjson.serializer.SerializerFeature
;
...
@@ -77,4 +79,10 @@ public class JsonTest {
...
@@ -77,4 +79,10 @@ public class JsonTest {
}
}
}
}
@Test
public
void
test
()
throws
Exception
{
String
extData
=
"eyJyZWRpcmVjdCI6ImxvY2FsIiwicmVnaXN0ZXJGcm9tIjoyMjJ9"
;
System
.
out
.
println
(
new
String
(
Base64
.
decodeBase64
(
extData
),
"UTF-8"
));
}
}
}
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