Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xzxt-api-report
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
雷紫添
xzxt-api-report
Commits
f2ece133
Commit
f2ece133
authored
Oct 30, 2020
by
雷紫添
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整为jar运行。
parent
784ed5e5
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
10 deletions
+9
-10
pom.xml
+2
-4
src/main/java/com/founder/controller/JccjController.java
+1
-0
src/main/java/com/founder/service/impl/JccjServiceImpl.java
+1
-1
src/main/java/com/founder/task/ScheduleTask.java
+2
-2
src/main/java/com/founder/test.java
+1
-1
src/main/resources/application.yml
+2
-2
No files found.
pom.xml
View file @
f2ece133
...
...
@@ -10,10 +10,8 @@
</parent>
<groupId>
com.founder
</groupId>
<artifactId>
xzxt-api-report
</artifactId>
<version>
0.0.1-SNAPSHOT
</version>
<packaging>
war
</packaging>
<name>
xzxt-api-report
</name>
<description>
Demo project for Spring Boot
</description>
<packaging>
jar
</packaging>
<properties>
<java.version>
1.8
</java.version>
...
...
src/main/java/com/founder/controller/JccjController.java
View file @
f2ece133
...
...
@@ -77,4 +77,5 @@ public class JccjController {
}
}
src/main/java/com/founder/service/impl/JccjServiceImpl.java
View file @
f2ece133
...
...
@@ -97,7 +97,7 @@ public class JccjServiceImpl implements JccjService {
}
}
}
catch
(
IOException
e
)
{
System
.
out
.
println
(
e
.
getMessage
());
}
finally
{
httpPost
.
releaseConnection
();
}
...
...
src/main/java/com/founder/task/ScheduleTask.java
View file @
f2ece133
...
...
@@ -37,7 +37,7 @@ public class ScheduleTask {
@Scheduled
(
cron
=
"*/5 * * * * ?"
)
public
void
taskForDictUpdate
(){
logger
.
info
(
"This is a say method!"
+
format
.
format
(
new
Date
()));
xxbsSerevice
();
//
xxbsSerevice();
}
/*
* 定时执行-查询一个表中的数据,存到字典表或者字典js文件
...
...
@@ -45,7 +45,7 @@ public class ScheduleTask {
@Scheduled
(
cron
=
"*/5 * * * * ?"
)
public
void
taskForDictUpdateManager
(){
logger
.
info
(
"This is a say method!"
+
format
.
format
(
new
Date
()));
dictSerevice
();
//
dictSerevice();
}
private
void
xxbsSerevice
(){
...
...
src/main/java/com/founder/test.java
View file @
f2ece133
...
...
@@ -45,7 +45,7 @@ public class test {
jccj
.
setUser_dept
(
"1400000000"
);
jccj
.
setVersion
(
"1.00"
);
//发送,httpclient 包含zip包
JSONObject
jsonResult
=
JccjServiceImpl
.
requestByPost
(
"http://localhost/jccj/xxbs"
,
jccj
);
JSONObject
jsonResult
=
JccjServiceImpl
.
requestByPost
(
"http://localhost
:9061
/jccj/xxbs"
,
jccj
);
System
.
out
.
println
(
"返回的参数为::"
+
jsonResult
.
toJSONString
());
}
catch
(
Exception
e
)
{
...
...
src/main/resources/application.yml
View file @
f2ece133
...
...
@@ -6,7 +6,6 @@ spring:
time-zone
:
GMT+8
mybatis
:
#type-aliases-package: com.founder.interservice.model
config-location
:
classpath:mybatis/mybatis-config.xml
...
...
@@ -23,4 +22,5 @@ logging:
jslocation
:
E:/sysDictJs/common/dict/
ssdw
:
140000000000
server
:
port
:
9061
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