修改日志级别

This commit is contained in:
shuzheng 2017-03-12 21:40:57 +08:00
parent 6ed482f1ed
commit a3c09a56d8
1 changed files with 2 additions and 2 deletions

View File

@ -21,11 +21,11 @@ public class ApplicationContextListener implements ApplicationListener<ContextRe
public void onApplicationEvent(ContextRefreshedEvent contextRefreshedEvent) {
// root application context
if(null == contextRefreshedEvent.getApplicationContext().getParent()) {
_log.info(">>>>> spring初始化完毕 <<<<<");
_log.debug(">>>>> spring初始化完毕 <<<<<");
// spring初始化完毕后通过反射调用所有使用BaseService注解的initMapper方法
Map<String, Object> services = contextRefreshedEvent.getApplicationContext().getBeansWithAnnotation(BaseService.class);
for(Object service : services.values()) {
_log.info(">>>>> {}.initMapper()", service.getClass().getName());
_log.debug(">>>>> {}.initMapper()", service.getClass().getName());
try {
Method initMapper = service.getClass().getMethod("initMapper");
initMapper.invoke(service);