From 1cfe8e7b09ee42d59c1a8fe9dd10a8284587180d Mon Sep 17 00:00:00 2001 From: Redkale <22250530@qq.com> Date: Tue, 13 Jun 2017 17:25:42 +0800 Subject: [PATCH] --- course01_hello.html | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/course01_hello.html b/course01_hello.html index 7304876a7..1c2150cdb 100644 --- a/course01_hello.html +++ b/course01_hello.html @@ -96,7 +96,31 @@
访问地址的端口6060和前缀pipes是通过conf/application.xml文件进行配置:
-
<application port="5050">
+
+ <!-- 详细配置说明见: http://redkale.org/redkale.html#redkale_confxml -->
+
+ <resources>
+ <!--
+ <properties>
+ <property name="system.property.convert.json.tiny" value="true"/>
+ </properties>
+ -->
+ </resources>
+
+ <server protocol="HTTP" host="0.0.0.0" port="6060" root="root">
+
+ <services autoload="true"/>
+
+ <!-- base指定的自定义HttpServlet子类必须标记@HttpUserType, 不设置base则视为没有当前用户信息设置 -->
+ <rest path="/pipes" autoload="true" />
+
+ <servlets path="/pipes" autoload="true" />
+
+ </server>
+
+</application>
+
至此,一个简单的Hello服务就开发和调试完成了。可以看出,代码简单很多,不需要太多配置、maven和其他依赖包。