跳转至

java 例子

package hi;

import hi.servlet;
import hi.request;
import hi.response;

public class hello implements hi.servlet {

    public hello() {

    }

    public void handler(hi.request req, hi.response res) {
        res.set_content_type("text/plain;charset=UTF-8");
        res.status = 200;
        res.content = "hello,world\n";

    }
}