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和其他依赖包。