Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
胡立强
/
VVAS-Weather
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 53096675
authored
Nov 15, 2021
by
袁津
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[chg]优化调用AQI接口时的日志打印
1 parent
619e4fd3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletions
src/main/java/com/viontech/service/impl/JsonService.java
src/main/java/com/viontech/service/impl/JsonService.java
View file @
5309667
...
@@ -110,7 +110,6 @@ public class JsonService {
...
@@ -110,7 +110,6 @@ public class JsonService {
HttpResponse
response
=
HttpUtils
.
doPost
(
host
,
path
,
method
,
headers
,
querys
,
bodys
);
HttpResponse
response
=
HttpUtils
.
doPost
(
host
,
path
,
method
,
headers
,
querys
,
bodys
);
json
=
EntityUtils
.
toString
(
response
.
getEntity
());
json
=
EntityUtils
.
toString
(
response
.
getEntity
());
System
.
out
.
println
(
sdf
.
format
(
new
Date
())
+
"调用AQI接口返回json:"
+
json
);
ObjectMapper
mapper
=
new
ObjectMapper
();
ObjectMapper
mapper
=
new
ObjectMapper
();
mapper
.
configure
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
);
mapper
.
configure
(
DeserializationFeature
.
FAIL_ON_UNKNOWN_PROPERTIES
,
false
);
mapper
.
setDateFormat
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
));
mapper
.
setDateFormat
(
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
));
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment