Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
3e1fe78e
提交
3e1fe78e
authored
5月 10, 2017
作者:
xueli.xue
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配置同步
上级
8a6d462d
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
7 行增加
和
32 行删除
+7
-32
xxl-job-executor.properties
...or-example/src/main/resources/xxl-job-executor.properties
+1
-1
applicationcontext-xxl-job.xml
...example/src/main/resources/applicationcontext-xxl-job.xml
+4
-26
xxl-job-executor.properties
...ot-example/src/main/resources/xxl-job-executor.properties
+2
-5
没有找到文件。
xxl-job-executor-example/src/main/resources/xxl-job-executor.properties
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论