Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-xxljobadmin
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
hqzhdj
cloud-xxljobadmin
Commits
3035b591
Commit
3035b591
authored
Oct 18, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
配置信息
parent
84a662b5
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
30 deletions
+31
-30
cloud-xxl-job-admin.iml
+1
-1
src/main/java/com/yizhi/xxl/job/admin/XxlJobAdminApplication.java
+2
-1
src/main/resources/application-dev.properties
+4
-4
src/main/resources/application-prod.properties
+4
-4
src/main/resources/application-sit.properties
+4
-4
src/main/resources/application-uat.properties
+4
-4
src/main/resources/application-wmy.properties
+4
-4
src/main/resources/application-wmy401.properties
+4
-4
src/test/java/com/xxl/job/adminbiz/AdminBizTest.java
+3
-3
src/test/java/com/xxl/job/executorbiz/ExecutorBizTest.java
+1
-1
No files found.
cloud-xxl-job-admin.iml
View file @
3035b591
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
<orderEntry
type=
"library"
name=
"Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis.spring.boot:mybatis-spring-boot-autoconfigure:2.1.2"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis:3.5.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis:3.5.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis-spring:2.0.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: org.mybatis:mybatis-spring:2.0.4"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:
8.0.19
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: mysql:mysql-connector-java:
5.1.16
"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.xuxueli:xxl-job-core:2.2.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.xuxueli:xxl-job-core:2.2.0"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-all:4.1.48.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: io.netty:netty-all:4.1.48.Final"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.gson:gson:2.8.6"
level=
"project"
/>
<orderEntry
type=
"library"
name=
"Maven: com.google.code.gson:gson:2.8.6"
level=
"project"
/>
...
...
src/main/java/com/yizhi/xxl/job/admin/XxlJobAdminApplication.java
View file @
3035b591
...
@@ -4,11 +4,12 @@ import org.slf4j.Logger;
...
@@ -4,11 +4,12 @@ import org.slf4j.Logger;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
import
org.springframework.boot.autoconfigure.amqp.RabbitAutoConfiguration
;
/**
/**
* @author xuxueli 2018-10-28 00:38:13
* @author xuxueli 2018-10-28 00:38:13
*/
*/
@SpringBootApplication
@SpringBootApplication
(
exclude
=
{
RabbitAutoConfiguration
.
class
})
public
class
XxlJobAdminApplication
{
public
class
XxlJobAdminApplication
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobAdminApplication
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobAdminApplication
.
class
);
...
...
src/main/resources/application-dev.properties
View file @
3035b591
spring.datasource.url
=
jdbc:mysql://rm-uf6svs68d001jtvyg.mysql.rds.aliyuncs.com:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.username
=
fulandba
spring.datasource.username
=
root
spring.datasource.password
=
Fldba#13!
spring.datasource.password
=
123456
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-prod.properties
View file @
3035b591
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.driver-class-name
=
com.mysql.jdbc.Driver
spring.datasource.url
=
jdbc:mysql://rm-uf623k49kbg5d2j3hso.mysql.rds.aliyuncs.com:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?characterEncoding=utf8&connectTimeout=1000&socketTimeout=3000&autoReconnect=true&useUnicode=true&useSSL=false&serverTimezone=UTC
spring.datasource.username
=
fulandba
spring.datasource.username
=
root
spring.datasource.password
=
Fldba#13!
spring.datasource.password
=
zhdj@#2024
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-sit.properties
View file @
3035b591
spring.datasource.url
=
jdbc:mysql://rm-uf6svs68d001jtvyg.mysql.rds.aliyuncs.com:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.username
=
fulandba
spring.datasource.username
=
root
spring.datasource.password
=
Fldba#13!
spring.datasource.password
=
123456
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-uat.properties
View file @
3035b591
spring.datasource.url
=
jdbc:mysql://rm-uf6svs68d001jtvyg.mysql.rds.aliyuncs.com:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&relaxAutoCommit=true&zeroDateTimeBehavior=convertToNull
spring.datasource.username
=
fulandba
spring.datasource.username
=
root
spring.datasource.password
=
Fldba#13!
spring.datasource.password
=
123456
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-wmy.properties
View file @
3035b591
### xxl-job, datasource
### xxl-job, datasource
spring.datasource.url
=
jdbc:mysql://192.168.1.9:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
spring.datasource.username
=
dev
spring.datasource.username
=
root
spring.datasource.password
=
devDB@123
spring.datasource.password
=
123456
\ No newline at end of file
\ No newline at end of file
src/main/resources/application-wmy401.properties
View file @
3035b591
spring.datasource.url
=
jdbc:mysql://192.168.1.9:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
spring.datasource.url
=
jdbc:mysql://10.23.1.183:3306/xxl_job?useUnicode=true&characterEncoding=UTF-8&autoReconnect=true
spring.datasource.username
=
dev
spring.datasource.username
=
root
spring.datasource.password
=
devDB@123
spring.datasource.password
=
123456
\ No newline at end of file
\ No newline at end of file
src/test/java/com/xxl/job/adminbiz/AdminBizTest.java
View file @
3035b591
...
@@ -20,7 +20,7 @@ import java.util.List;
...
@@ -20,7 +20,7 @@ import java.util.List;
public
class
AdminBizTest
{
public
class
AdminBizTest
{
// admin-client
// admin-client
private
static
String
addressUrl
=
"http://1
27.0.0.1
:8080/xxl-job-admin/"
;
private
static
String
addressUrl
=
"http://1
0.23.1.183
:8080/xxl-job-admin/"
;
private
static
String
accessToken
=
null
;
private
static
String
accessToken
=
null
;
...
@@ -48,7 +48,7 @@ public class AdminBizTest {
...
@@ -48,7 +48,7 @@ public class AdminBizTest {
public
void
registry
()
throws
Exception
{
public
void
registry
()
throws
Exception
{
AdminBiz
adminBiz
=
new
AdminBizClient
(
addressUrl
,
accessToken
);
AdminBiz
adminBiz
=
new
AdminBizClient
(
addressUrl
,
accessToken
);
RegistryParam
registryParam
=
new
RegistryParam
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
(),
"xxl-job-executor-example"
,
"1
27.0.0.1
:9999"
);
RegistryParam
registryParam
=
new
RegistryParam
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
(),
"xxl-job-executor-example"
,
"1
0.23.1.183
:9999"
);
ReturnT
<
String
>
returnT
=
adminBiz
.
registry
(
registryParam
);
ReturnT
<
String
>
returnT
=
adminBiz
.
registry
(
registryParam
);
Assert
.
assertTrue
(
returnT
.
getCode
()
==
ReturnT
.
SUCCESS_CODE
);
Assert
.
assertTrue
(
returnT
.
getCode
()
==
ReturnT
.
SUCCESS_CODE
);
...
@@ -63,7 +63,7 @@ public class AdminBizTest {
...
@@ -63,7 +63,7 @@ public class AdminBizTest {
public
void
registryRemove
()
throws
Exception
{
public
void
registryRemove
()
throws
Exception
{
AdminBiz
adminBiz
=
new
AdminBizClient
(
addressUrl
,
accessToken
);
AdminBiz
adminBiz
=
new
AdminBizClient
(
addressUrl
,
accessToken
);
RegistryParam
registryParam
=
new
RegistryParam
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
(),
"xxl-job-executor-example"
,
"1
27.0.0.1
:9999"
);
RegistryParam
registryParam
=
new
RegistryParam
(
RegistryConfig
.
RegistType
.
EXECUTOR
.
name
(),
"xxl-job-executor-example"
,
"1
0.23.1.183
:9999"
);
ReturnT
<
String
>
returnT
=
adminBiz
.
registryRemove
(
registryParam
);
ReturnT
<
String
>
returnT
=
adminBiz
.
registryRemove
(
registryParam
);
Assert
.
assertTrue
(
returnT
.
getCode
()
==
ReturnT
.
SUCCESS_CODE
);
Assert
.
assertTrue
(
returnT
.
getCode
()
==
ReturnT
.
SUCCESS_CODE
);
...
...
src/test/java/com/xxl/job/executorbiz/ExecutorBizTest.java
View file @
3035b591
...
@@ -16,7 +16,7 @@ import org.junit.Test;
...
@@ -16,7 +16,7 @@ import org.junit.Test;
public
class
ExecutorBizTest
{
public
class
ExecutorBizTest
{
// admin-client
// admin-client
private
static
String
addressUrl
=
"http://1
27.0.0.1
:9999/"
;
private
static
String
addressUrl
=
"http://1
0.23.1.183
:9999/"
;
private
static
String
accessToken
=
null
;
private
static
String
accessToken
=
null
;
@Test
@Test
...
...
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