This commit is contained in:
Redkale
2017-05-12 21:46:10 +08:00
parent 3a1f20d438
commit c622e2437d

View File

@@ -14,8 +14,10 @@ import java.io.*;
* @author zhangjx * @author zhangjx
* @param <T> 当前用户对象类型 * @param <T> 当前用户对象类型
*/ */
public abstract class RestHttpServlet<T> extends HttpServlet { public class RestHttpServlet<T> extends HttpServlet {
protected abstract T currentUser(HttpRequest req) throws IOException; protected T currentUser(HttpRequest req) throws IOException {
return null;
}
} }