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
9eacd0ca
authored
Sep 30, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新RM
parent
21ceb607
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml
xxl-job-executor-example/src/main/resources/applicationcontext-xxl-job.xml
View file @
9eacd0ca
...
@@ -7,6 +7,8 @@
...
@@ -7,6 +7,8 @@
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
>
http://www.springframework.org/schema/context/spring-context-3.0.xsd"
>
<!-- ********************************* 基础配置 ********************************* -->
<!-- 配置01、JobHandler 扫描路径 -->
<!-- 配置01、JobHandler 扫描路径 -->
<context:component-scan
base-package=
"com.xxl.job.executor.service.jobhandler"
/>
<context:component-scan
base-package=
"com.xxl.job.executor.service.jobhandler"
/>
...
@@ -16,12 +18,15 @@
...
@@ -16,12 +18,15 @@
<property
name=
"port"
value=
"9999"
/>
<property
name=
"port"
value=
"9999"
/>
</bean>
</bean>
<!-- 配置03、GlueFactory (启用GLUE任务时才需要, 否则可删除) -->
<!-- ********************************* "GlueFactory" 配置, 仅在启动 "GLUE模式任务" 时才需要, 否则可删除 ********************************* -->
<!-- 配置03、GlueFactory -->
<bean
id=
"glueFactory"
class=
"com.xxl.job.core.glue.GlueFactory"
>
<bean
id=
"glueFactory"
class=
"com.xxl.job.core.glue.GlueFactory"
>
<!-- GLUE任务示例缓存失效时间, 单位/ms -->
<!-- GLUE任务示例缓存失效时间, 单位/ms -->
<property
name=
"cacheTimeout"
value=
"10000"
/>
<property
name=
"cacheTimeout"
value=
"10000"
/>
<!-- GLUE
代码加载器,推荐将该服务配置成
RPC服务 -->
<!-- GLUE
源码加载器,默认使用系统提供的 "DbGlueLoader", 推荐将其改为公共的
RPC服务 -->
<property
name=
"glueLoader"
>
<property
name=
"glueLoader"
>
<!-- DbGlueLoader, 依赖 "XXL-JOB公共数据源" -->
<bean
class=
"com.xxl.job.core.glue.loader.impl.DbGlueLoader"
>
<bean
class=
"com.xxl.job.core.glue.loader.impl.DbGlueLoader"
>
<!-- XXL-JOB公共数据源 -->
<!-- XXL-JOB公共数据源 -->
<property
name=
"dataSource"
ref=
"dataSource"
/>
<property
name=
"dataSource"
ref=
"dataSource"
/>
...
@@ -29,7 +34,9 @@
...
@@ -29,7 +34,9 @@
</property>
</property>
</bean>
</bean>
<!-- 配置04、XXL-JOB公共数据源 (启用GLUE任务, 且使用 "DbGlueLoader" 作为 "GLUE源码加载器" 时才需要, 否则可删除) -->
<!-- ********************************* "XXL-JOB公共数据源" 配置, 仅在启动 "GLUE模式任务" 的 "DbGlueLoader" 时才需要, 否则可删除 ********************************* -->
<!-- 配置04、XXL-JOB公共数据源 -->
<bean
id=
"dataSource"
class=
"com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method=
"close"
>
<bean
id=
"dataSource"
class=
"com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method=
"close"
>
<property
name=
"driverClass"
value=
"${c3p0.driverClass}"
/>
<property
name=
"driverClass"
value=
"${c3p0.driverClass}"
/>
<property
name=
"jdbcUrl"
value=
"${c3p0.url}"
/>
<property
name=
"jdbcUrl"
value=
"${c3p0.url}"
/>
...
...
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