Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3e1fe78e
authored
May 10, 2017
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
配置同步
parent
8a6d462d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
32 deletions
xxl-job-executor-example/src/main/resources/xxl-job-executor.properties
xxl-job-executor-springboot-example/src/main/resources/applicationcontext-xxl-job.xml
xxl-job-executor-springboot-example/src/main/resources/xxl-job-executor.properties
xxl-job-executor-example/src/main/resources/xxl-job-executor.properties
View file @
3e1fe78e
### xxl-job admin address
, such as "http://host01:port01/project,http://host02:port02/project
"
### xxl-job admin address
list, such as "http://address" or "http://address01,http://address02
"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
...
...
xxl-job-executor-springboot-example/src/main/resources/applicationcontext-xxl-job.xml
View file @
3e1fe78e
...
...
@@ -27,34 +27,13 @@
<property
name=
"ip"
value=
"${xxl.job.executor.ip}"
/>
<!-- 执行器端口号 -->
<property
name=
"port"
value=
"${xxl.job.executor.port}"
/>
<!-- 执行器AppName,为空则关闭自动注册 -->
<property
name=
"appName"
value=
"${xxl.job.executor.appname}"
/>
<!-- 执行器注册器 -->
<property
name=
"registHelper"
>
<!-- 执行器 "DbRegistHelper" 依赖 "XXL-JOB公共数据源" ;推荐将其抽象为RPC远程服务, 可取消对JDBC的依赖;如不启用执行自动注册功能,也可忽略JDBC配置; -->
<bean
class=
"com.xxl.job.core.registry.impl.DbRegistHelper"
>
<!-- XXL-JOB公共数据源 -->
<property
name=
"dataSource"
ref=
"xxlJobDataSource"
/>
</bean>
</property>
<!-- 执行器注册中心地址,为空则关闭自动注册 -->
<property
name=
"adminAddresses"
value=
"${xxl.job.admin.addresses}"
/>
<!-- 执行器日志路径 -->
<property
name=
"logPath"
value=
"${xxl.job.executor.logpath}"
/>
</bean>
<!-- ********************************* "XXL-JOB公共数据源" 配置, 仅在启动 "DbRegistHelper" 时才需要, 否则可删除 ********************************* -->
<!-- 配置03、XXL-JOB公共数据源 -->
<bean
id=
"xxlJobDataSource"
class=
"com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method=
"close"
>
<property
name=
"driverClass"
value=
"${xxl.job.db.driverClass}"
/>
<property
name=
"jdbcUrl"
value=
"${xxl.job.db.url}"
/>
<property
name=
"user"
value=
"${xxl.job.db.user}"
/>
<property
name=
"password"
value=
"${xxl.job.db.password}"
/>
<property
name=
"initialPoolSize"
value=
"3"
/>
<property
name=
"minPoolSize"
value=
"2"
/>
<property
name=
"maxPoolSize"
value=
"10"
/>
<property
name=
"maxIdleTime"
value=
"60"
/>
<property
name=
"acquireRetryDelay"
value=
"1000"
/>
<property
name=
"acquireRetryAttempts"
value=
"10"
/>
<property
name=
"preferredTestQuery"
value=
"SELECT 1"
/>
</bean>
</beans>
\ No newline at end of file
xxl-job-executor-springboot-example/src/main/resources/xxl-job-executor.properties
View file @
3e1fe78e
### xxl-job db
xxl.job.db.driverClass
=
com.mysql.jdbc.Driver
xxl.job.db.url
=
jdbc:mysql://localhost:3306/xxl-job?useUnicode=true&characterEncoding=UTF-8
xxl.job.db.user
=
root
xxl.job.db.password
=
root_pwd
### xxl-job admin address list, such as "http://address" or "http://address01,http://address02"
xxl.job.admin.addresses
=
http://127.0.0.1:8080/xxl-job-admin
### xxl-job executor address
xxl.job.executor.appname
=
xxl-job-executor-example
...
...
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