This commit is contained in:
@@ -17,18 +17,18 @@ import org.redkale.convert.json.JsonConvert;
|
|||||||
* HttpServlet调用: <br>
|
* HttpServlet调用: <br>
|
||||||
* <pre>
|
* <pre>
|
||||||
* @HttpMapping(url = "/hello.html", auth = false)
|
* @HttpMapping(url = "/hello.html", auth = false)
|
||||||
public void hello(HttpRequest req, HttpResponse resp) throws IOException {
|
* public void hello(HttpRequest req, HttpResponse resp) throws IOException {
|
||||||
resp.finish(HttpScope.refer("/hello.html").attr("content", "哈哈"));
|
* resp.finish(HttpScope.refer("/hello.html").attr("content", "哈哈"));
|
||||||
}
|
* }
|
||||||
</pre>
|
* </pre>
|
||||||
* <p>
|
* <p>
|
||||||
* RestService调用: <br>
|
* RestService调用: <br>
|
||||||
* <pre>
|
* <pre>
|
||||||
* @RestMapping(name = "hello.html", auth = false)
|
* @RestMapping(name = "hello.html", auth = false)
|
||||||
public HttpScope hello() {
|
* public HttpScope hello() {
|
||||||
return HttpScope.refer("hello.html").attr("content", "哈哈");
|
* return HttpScope.refer("hello.html").attr("content", "哈哈");
|
||||||
}
|
* }
|
||||||
</pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* 详情见: https://redkale.org
|
* 详情见: https://redkale.org
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user