Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
J
jobs
Project
Project
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
曲欣亮
jobs
Commits
255758dc
Commit
255758dc
authored
Aug 06, 2018
by
张永
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
改目录
parent
d82479d0
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
64 additions
and
20 deletions
+64
-20
pom.xml
pom.xml
+5
-0
JobsApplication.java
src/main/java/com/egolm/jobs/JobsApplication.java
+40
-0
ExceptionHandler.java
src/main/java/com/egolm/jobs/config/ExceptionHandler.java
+1
-1
SwaggerConfig.java
src/main/java/com/egolm/jobs/config/SwaggerConfig.java
+2
-2
WebMvcConfig.java
src/main/java/com/egolm/jobs/config/WebMvcConfig.java
+1
-1
XException.java
src/main/java/com/egolm/jobs/config/XException.java
+1
-1
ScheduleDataSourceConfig.java
...golm/jobs/config/datasource/ScheduleDataSourceConfig.java
+1
-1
ShopDataSourceConfig.java
...om/egolm/jobs/config/datasource/ShopDataSourceConfig.java
+1
-1
JobCommon.java
src/main/java/com/egolm/jobs/config/schedule/JobCommon.java
+1
-1
ScheduleConfig.java
...n/java/com/egolm/jobs/config/schedule/ScheduleConfig.java
+1
-1
ScheduleJob.java
...main/java/com/egolm/jobs/config/schedule/ScheduleJob.java
+1
-1
ScheduleUtils.java
...in/java/com/egolm/jobs/config/schedule/ScheduleUtils.java
+2
-3
XScheduleException.java
...va/com/egolm/jobs/config/schedule/XScheduleException.java
+2
-2
application-dev.properties
src/main/resources/application-dev.properties
+5
-5
No files found.
pom.xml
View file @
255758dc
...
@@ -21,6 +21,11 @@
...
@@ -21,6 +21,11 @@
<groupId>
org.springframework.boot
</groupId>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-web
</artifactId>
<artifactId>
spring-boot-starter-web
</artifactId>
</dependency>
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-devtools
</artifactId>
<optional>
true
</optional>
</dependency>
<dependency>
<dependency>
<groupId>
mysql
</groupId>
<groupId>
mysql
</groupId>
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
...
...
src/main/java/com/egolm/jobs/JobsApplication.java
0 → 100644
View file @
255758dc
package
com
.
egolm
.
jobs
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.cache.annotation.EnableCaching
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.transaction.annotation.EnableTransactionManagement
;
import
springfox.documentation.swagger2.annotations.EnableSwagger2
;
@EnableCaching
@EnableSwagger2
@SpringBootApplication
@EnableTransactionManagement
public
class
JobsApplication
{
private
static
ApplicationContext
applicationContext
;
public
static
void
main
(
String
[]
args
)
{
applicationContext
=
SpringApplication
.
run
(
JobsApplication
.
class
,
args
);
}
public
static
ApplicationContext
getApplicationContext
()
{
return
applicationContext
;
}
public
static
Object
getBean
(
String
name
){
return
getApplicationContext
().
getBean
(
name
);
}
public
static
<
T
>
T
getBean
(
Class
<
T
>
clazz
){
return
getApplicationContext
().
getBean
(
clazz
);
}
public
static
<
T
>
T
getBean
(
String
name
,
Class
<
T
>
clazz
){
return
getApplicationContext
().
getBean
(
name
,
clazz
);
}
}
src/main/java/c
n/ossip
/jobs/config/ExceptionHandler.java
→
src/main/java/c
om/egolm
/jobs/config/ExceptionHandler.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
;
package
c
om
.
egolm
.
jobs
.
config
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
...
...
src/main/java/c
n/ossip
/jobs/config/SwaggerConfig.java
→
src/main/java/c
om/egolm
/jobs/config/SwaggerConfig.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
;
package
c
om
.
egolm
.
jobs
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.context.annotation.Configuration
;
...
@@ -25,7 +25,7 @@ public class SwaggerConfig {
...
@@ -25,7 +25,7 @@ public class SwaggerConfig {
private
ApiInfo
apiInfo
()
{
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
.
title
(
"在线文档"
)
.
title
(
"
定时任务
在线文档"
)
.
description
(
"在线文档"
)
.
description
(
"在线文档"
)
.
termsOfServiceUrl
(
"NO terms of service"
)
.
termsOfServiceUrl
(
"NO terms of service"
)
.
version
(
"1.0"
)
.
version
(
"1.0"
)
...
...
src/main/java/c
n/ossip
/jobs/config/WebMvcConfig.java
→
src/main/java/c
om/egolm
/jobs/config/WebMvcConfig.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
;
package
c
om
.
egolm
.
jobs
.
config
;
import
java.util.EventListener
;
import
java.util.EventListener
;
...
...
src/main/java/c
n/ossip
/jobs/config/XException.java
→
src/main/java/c
om/egolm
/jobs/config/XException.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
;
package
c
om
.
egolm
.
jobs
.
config
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.common.bean.Rjx
;
...
...
src/main/java/c
n/ossip
/jobs/config/datasource/ScheduleDataSourceConfig.java
→
src/main/java/c
om/egolm
/jobs/config/datasource/ScheduleDataSourceConfig.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
datasource
;
package
c
om
.
egolm
.
jobs
.
config
.
datasource
;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
...
...
src/main/java/c
n/ossip
/jobs/config/datasource/ShopDataSourceConfig.java
→
src/main/java/c
om/egolm
/jobs/config/datasource/ShopDataSourceConfig.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
datasource
;
package
c
om
.
egolm
.
jobs
.
config
.
datasource
;
import
javax.sql.DataSource
;
import
javax.sql.DataSource
;
...
...
src/main/java/c
n/ossip
/jobs/config/schedule/JobCommon.java
→
src/main/java/c
om/egolm
/jobs/config/schedule/JobCommon.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
schedule
;
package
c
om
.
egolm
.
jobs
.
config
.
schedule
;
import
java.util.Date
;
import
java.util.Date
;
...
...
src/main/java/c
n/ossip
/jobs/config/schedule/ScheduleConfig.java
→
src/main/java/c
om/egolm
/jobs/config/schedule/ScheduleConfig.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
schedule
;
package
c
om
.
egolm
.
jobs
.
config
.
schedule
;
import
java.util.Properties
;
import
java.util.Properties
;
...
...
src/main/java/c
n/ossip
/jobs/config/schedule/ScheduleJob.java
→
src/main/java/c
om/egolm
/jobs/config/schedule/ScheduleJob.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
schedule
;
package
c
om
.
egolm
.
jobs
.
config
.
schedule
;
import
org.quartz.JobExecutionContext
;
import
org.quartz.JobExecutionContext
;
import
org.quartz.JobExecutionException
;
import
org.quartz.JobExecutionException
;
...
...
src/main/java/c
n/ossip
/jobs/config/schedule/ScheduleUtils.java
→
src/main/java/c
om/egolm
/jobs/config/schedule/ScheduleUtils.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
schedule
;
package
c
om
.
egolm
.
jobs
.
config
.
schedule
;
import
java.util.Date
;
import
java.util.Date
;
...
@@ -18,8 +18,7 @@ import org.quartz.TriggerBuilder;
...
@@ -18,8 +18,7 @@ import org.quartz.TriggerBuilder;
import
org.quartz.TriggerKey
;
import
org.quartz.TriggerKey
;
import
com.egolm.common.StringUtil
;
import
com.egolm.common.StringUtil
;
import
com.egolm.jobs.config.schedule.ScheduleConfig.RunFlag
;
import
cn.ossip.jobs.config.schedule.ScheduleConfig.RunFlag
;
/**
/**
* Quartz Schedule 工具
* Quartz Schedule 工具
...
...
src/main/java/c
n/ossip
/jobs/config/schedule/XScheduleException.java
→
src/main/java/c
om/egolm
/jobs/config/schedule/XScheduleException.java
View file @
255758dc
package
c
n
.
ossip
.
jobs
.
config
.
schedule
;
package
c
om
.
egolm
.
jobs
.
config
.
schedule
;
import
c
n.ossip
.jobs.config.XException
;
import
c
om.egolm
.jobs.config.XException
;
public
class
XScheduleException
extends
XException
{
public
class
XScheduleException
extends
XException
{
...
...
src/main/resources/application-dev.properties
View file @
255758dc
server.tomcat.max-threads
=
1000
server.tomcat.max-threads
=
1000
server.tomcat.min-spare-threads
=
30
server.tomcat.min-spare-threads
=
30
server.port
=
8088
server.port
=
30002
server.context-path
=
/
server.context-path
=
/
jobs
server.session.timeout
=
90000
server.session.timeout
=
90000
server.tomcat.uri-encoding
=
utf-8
server.tomcat.uri-encoding
=
utf-8
...
@@ -21,9 +21,9 @@ spring.datasource.schedule.validationQuery=SELECT 1
...
@@ -21,9 +21,9 @@ spring.datasource.schedule.validationQuery=SELECT 1
spring.datasource.schedule.timeBetweenEvictionRunsMillis
=
3600000
spring.datasource.schedule.timeBetweenEvictionRunsMillis
=
3600000
spring.datasource.shop.username
=
sa
spring.datasource.shop.username
=
ERP
spring.datasource.shop.password
=
qiyang
spring.datasource.shop.password
=
qiyang
@2013
spring.datasource.shop.url
=
jdbc:sqlserver://10.10.0.
51:56443;instanceName=SQLSERVER;DatabaseName=EGOLMSAAS
spring.datasource.shop.url
=
jdbc:sqlserver://10.10.0.
22:1433;instanceName=SQLSERVER;DatabaseName=EGOLMDEV
spring.datasource.shop.driver-class-name
=
com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.driver-class-name
=
com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.datasource.shop.testWhileIdle
=
true
spring.datasource.shop.testWhileIdle
=
true
spring.datasource.shop.validationQuery
=
SELECT 1
spring.datasource.shop.validationQuery
=
SELECT 1
...
...
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