cn.potato.web.Interceptor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of potato-webmvc Show documentation
Show all versions of potato-webmvc Show documentation
以约定优于配置的思想,结合SpringMVC的一些优点(参数自动注入),实现一个自己的简单MVC框架。
The newest version!
package cn.potato.web;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.lang.reflect.Method;
/**
* 拦截器接口
* @author 李恒名
* @since 2016年3月4日
*/
public interface Interceptor {
void before(HttpServletRequest request,HttpServletResponse response,Method controMethod);
void after(HttpServletRequest request,HttpServletResponse response,Object result);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy