diff --git a/plugin_rest.html b/plugin_rest.html index 537751579..3cdd71c06 100644 --- a/plugin_rest.html +++ b/plugin_rest.html @@ -30,7 +30,7 @@
- 为了让REST生效,必须配置 application.xml 中 HTTP 的 <server> 节点的nodeInterceptor属性值为 org.redkalex.rest.RestNodeInterceptor 。
+ 为了让REST生效,必须配置 application.xml 中 HTTP 的 <server> 节点的interceptor属性值为 org.redkalex.rest.RestNodeInterceptor 。
同时必须在<server> 节点 里增加 <rest> 子节点。配置介绍如下:
<application port="5001">
@@ -39,9 +39,9 @@
<!-- ... -->
</resources>
<!--
- nodeInterceptor: 值必须要是 org.redkalex.rest.RestNodeInterceptor,且只能配置在protocol="HTTP"的server节点上,REST服务才会生效。
+ interceptor: 值必须要是 org.redkalex.rest.RestNodeInterceptor,且只能配置在protocol="HTTP"的server节点上,REST服务才会生效。
-->
- <server protocol="HTTP" port="6060" nodeInterceptor="org.redkalex.rest.RestNodeInterceptor">
+ <server protocol="HTTP" port="6060" interceptor="org.redkalex.rest.RestNodeInterceptor">
<!--
REST的核心配置项
base: REST服务的BaseServlet,必须是 org.redkalex.rest.RestHttpServlet 的子类,该属性值没有默认值,必须指定。
diff --git a/redkale.html b/redkale.html
index 494274129..2ea67e1fc 100644
--- a/redkale.html
+++ b/redkale.html
@@ -590,7 +590,7 @@
responsePoolSize: Response池的大小,默认: CPU核数*256
readTimeoutSecond: 读操作超时秒数, 默认0, 表示永久不超时
writeTimeoutSecond: 写操作超时秒数, 默认0, 表示永久不超时
- nodeInterceptor: 启动/关闭NodeServer时被调用的拦截器实现类,必须是org.redkale.boot.NodeInterceptor的子类,默认为null
+ interceptor: 启动/关闭NodeServer时被调用的拦截器实现类,必须是org.redkale.boot.NodeInterceptor的子类,默认为null
-->
<server protocol="HTTP" host="127.0.0.1" port="6060" root="root" lib="">