diff --git a/src/org/redkale/net/http/HttpScope.java b/src/org/redkale/net/http/HttpScope.java index afaf3cef7..7a68e892b 100644 --- a/src/org/redkale/net/http/HttpScope.java +++ b/src/org/redkale/net/http/HttpScope.java @@ -17,18 +17,18 @@ import org.redkale.convert.json.JsonConvert; * HttpServlet调用:
*
  *    @HttpMapping(url = "/hello.html", auth = false)
-    public void hello(HttpRequest req, HttpResponse resp) throws IOException {
-        resp.finish(HttpScope.refer("/hello.html").attr("content", "哈哈"));
-    }
- 
+ * public void hello(HttpRequest req, HttpResponse resp) throws IOException { + * resp.finish(HttpScope.refer("/hello.html").attr("content", "哈哈")); + * } + * *

* RestService调用:
*

  *    @RestMapping(name = "hello.html", auth = false)
-    public HttpScope hello() {
-       return HttpScope.refer("hello.html").attr("content", "哈哈");
-    }
- 
+ * public HttpScope hello() { + * return HttpScope.refer("hello.html").attr("content", "哈哈"); + * } + * * * 详情见: https://redkale.org *