mirror of
https://gitee.com/huoyo/ko-time.git
synced 2025-12-06 16:58:26 +08:00
optimize config
This commit is contained in:
parent
167ab6b195
commit
cfe6a0e561
@ -6,6 +6,7 @@ import cn.langpy.kotime.handler.InvokedHandler;
|
|||||||
import cn.langpy.kotime.service.GraphService;
|
import cn.langpy.kotime.service.GraphService;
|
||||||
import cn.langpy.kotime.service.InvokedQueue;
|
import cn.langpy.kotime.service.InvokedQueue;
|
||||||
import cn.langpy.kotime.util.Context;
|
import cn.langpy.kotime.util.Context;
|
||||||
|
import cn.langpy.kotime.util.DataBaseException;
|
||||||
import org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisor;
|
import org.springframework.aop.aspectj.AspectJExpressionPointcutAdvisor;
|
||||||
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
import org.springframework.beans.factory.NoSuchBeanDefinitionException;
|
||||||
import org.springframework.beans.factory.NoUniqueBeanDefinitionException;
|
import org.springframework.beans.factory.NoUniqueBeanDefinitionException;
|
||||||
@ -97,6 +98,9 @@ public class LoadConfig {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (null==Context.getSaver()) {
|
||||||
|
throw new DataBaseException("error `ko-time.saver="+config.getSaver()+"`, and you can only choose an option in {memory,database} for `ko-time.saver=`!");
|
||||||
|
}
|
||||||
log.info("kotime=>loading config");
|
log.info("kotime=>loading config");
|
||||||
|
|
||||||
if (StringUtils.hasText(config.getContextPath())) {
|
if (StringUtils.hasText(config.getContextPath())) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user