Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
X
XXL-JOB
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
靳帅
XXL-JOB
Commits
0b9153f1
Unverified
提交
0b9153f1
authored
11月 19, 2019
作者:
许雪里
提交者:
GitHub
11月 19, 2019
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1181 from j112929/master
修复服务器报错无法创建bean XxlJobAdminConfig
上级
cc5aa982
49d7c97a
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
36 行增加
和
11 行删除
+36
-11
XxlJobAdminBean
...src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminBean
+27
-0
XxlJobAdminConfig.java
...n/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java
+4
-5
XxlJobScheduler.java
...ain/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java
+5
-6
没有找到文件。
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminBean
0 → 100644
浏览文件 @
0b9153f1
package
com
.
xxl
.
job
.
admin
.
conf
;
import
org
.
springframework
.
beans
.
factory
.
annotation
.
Qualifier
;
import
org
.
springframework
.
context
.
annotation
.
Bean
;
import
org
.
springframework
.
context
.
annotation
.
Configuration
;
/**
*
@
Auther
:
zhuolin
.
ji
*
@
Date
:
2019
/
10
/
12
18
:
08
*
@
Package
:
com
.
xxl
.
job
.
admin
.
conf
*
@
Description
:
*/
@
Configuration
public
class
XxlJobAdminBean
{
@
Bean
(
name
=
"xxlJobAdminConfig"
)
public
XxlJobAdminConfig
getXxlJobAdminConfig
()
{
return
new
XxlJobAdminConfig
();
}
@
Bean
(
initMethod
=
"init"
,
destroyMethod
=
"destroy"
)
public
XxlJobScheduler
getXxlJobScheduler
(@
Qualifier
(
value
=
"xxlJobAdminConfig"
)
XxlJobAdminConfig
xxlJobAdminConfig
)
{
XxlJobAdminConfig
.
setAdminConfig
(
xxlJobAdminConfig
);
return
new
XxlJobScheduler
();
}
}
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java
浏览文件 @
0b9153f1
...
@@ -18,16 +18,15 @@ import javax.sql.DataSource;
...
@@ -18,16 +18,15 @@ import javax.sql.DataSource;
*
*
* @author xuxueli 2017-04-28
* @author xuxueli 2017-04-28
*/
*/
@Component
public
class
XxlJobAdminConfig
implements
InitializingBean
{
public
class
XxlJobAdminConfig
{
private
static
XxlJobAdminConfig
adminConfig
=
null
;
private
static
XxlJobAdminConfig
adminConfig
=
null
;
public
static
XxlJobAdminConfig
getAdminConfig
()
{
public
static
XxlJobAdminConfig
getAdminConfig
()
{
return
adminConfig
;
return
adminConfig
;
}
}
@Override
public
static
void
setAdminConfig
(
XxlJobAdminConfig
config
)
{
public
void
afterPropertiesSet
()
throws
Exception
{
XxlJobAdminConfig
.
adminConfig
=
config
;
adminConfig
=
this
;
}
}
// conf
// conf
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobScheduler.java
浏览文件 @
0b9153f1
...
@@ -33,14 +33,13 @@ import java.util.concurrent.ConcurrentMap;
...
@@ -33,14 +33,13 @@ import java.util.concurrent.ConcurrentMap;
/**
/**
* @author xuxueli 2018-10-28 00:18:17
* @author xuxueli 2018-10-28 00:18:17
*/
*/
@Component
@DependsOn
(
"xxlJobAdminConfig"
)
public
class
XxlJobScheduler
{
public
class
XxlJobScheduler
implements
InitializingBean
,
DisposableBean
{
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobScheduler
.
class
);
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
XxlJobScheduler
.
class
);
@Override
public
void
afterPropertiesSe
t
()
throws
Exception
{
public
void
ini
t
()
throws
Exception
{
// init i18n
// init i18n
initI18n
();
initI18n
();
...
@@ -59,7 +58,7 @@ public class XxlJobScheduler implements InitializingBean, DisposableBean {
...
@@ -59,7 +58,7 @@ public class XxlJobScheduler implements InitializingBean, DisposableBean {
logger
.
info
(
">>>>>>>>> init xxl-job admin success."
);
logger
.
info
(
">>>>>>>>> init xxl-job admin success."
);
}
}
@Override
public
void
destroy
()
throws
Exception
{
public
void
destroy
()
throws
Exception
{
// stop-schedule
// stop-schedule
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论