From 0667c6a12ee0b8dc60dc168e617b6757648a7e01 Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Wed, 24 Aug 2016 07:11:30 +0800 Subject: [PATCH] --- src/META-INF/application-template.xml | 2 +- src/org/redkale/boot/NodeServer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/META-INF/application-template.xml b/src/META-INF/application-template.xml index faa88a36a..925989fd9 100644 --- a/src/META-INF/application-template.xml +++ b/src/META-INF/application-template.xml @@ -88,7 +88,7 @@ responsePoolSize: Response池的大小,默认: CPU核数*256 readTimeoutSecond: 读操作超时秒数, 默认0, 表示永久不超时 writeTimeoutSecond: 写操作超时秒数, 默认0, 表示永久不超时 - nodeInterceptor: 启动/关闭NodeServer时被调用的拦截器实现类,必须是org.redkale.boot.NodeInterceptor的子类,默认为null + interceptor: 启动/关闭NodeServer时被调用的拦截器实现类,必须是org.redkale.boot.NodeInterceptor的子类,默认为null --> diff --git a/src/org/redkale/boot/NodeServer.java b/src/org/redkale/boot/NodeServer.java index 3840b1435..618c2cc89 100644 --- a/src/org/redkale/boot/NodeServer.java +++ b/src/org/redkale/boot/NodeServer.java @@ -160,7 +160,7 @@ public abstract class NodeServer { server.init(this.serverConf); initResource(); //给 DataSource、CacheSource 注册依赖注入时的监听回调事件。 - String interceptorClass = this.serverConf.getValue("nodeInterceptor", ""); + String interceptorClass = this.serverConf.getValue("interceptor", ""); if (!interceptorClass.isEmpty()) { Class clazz = forName(interceptorClass); this.interceptor = (NodeInterceptor) clazz.newInstance();