Update XxlJobAdminConfig.java

2.1.2
jzl 5 years ago committed by GitHub
parent 80333db80e
commit 76b2316e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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

Loading…
Cancel
Save