@JFinal 你好,想跟你请教个问题:
JFinal 1.8 升级到 2.0后将 @ClearInterceptor(ClearLayer.ALL)改为 @Clear 后 拦截器 仍然执行了不知道什么原因
最近看了下源码,Control类上的@Clear是不起作用的
//登陆验证码在 jifinal 1.8 可以正常显示 但在jifinal 2.0下 就显示不出来
@SuppressWarnings("rawtypes")@RouteBind(path = "/ValidCode",name="验证码",sys="",model="",code="")public class ValidCodeCtrl extends BaseController { private static final String chars = "vwxBtuFpqEJKLM6eGZPH3AdU7NYDmnQ2rsfghRS8VCjkT5bcW49Xayz"; private static final int WIDTH = 150; private static final int HEIGHT = 50; //@ClearInterceptor(ClearLayer.ALL) @Clear //@Clear({BaseInterceptor.class,PermissionInterceptor.class}) public void jpg() { HttpServletResponse response = this.getResponse(); response.setContentType("image/jpeg");
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
暂无简介
文章 0 评论 0
接受
发布评论
评论(2)
最近看了下源码,Control类上的@Clear是不起作用的
//登陆验证码在 jifinal 1.8 可以正常显示 但在jifinal 2.0下 就显示不出来
@SuppressWarnings("rawtypes")
@RouteBind(path = "/ValidCode",name="验证码",sys="",model="",code="")
public class ValidCodeCtrl extends BaseController {
private static final String chars = "vwxBtuFpqEJKLM6eGZPH3AdU7NYDmnQ2rsfghRS8VCjkT5bcW49Xayz";
private static final int WIDTH = 150;
private static final int HEIGHT = 50;
//@ClearInterceptor(ClearLayer.ALL)
@Clear
//@Clear({BaseInterceptor.class,PermissionInterceptor.class})
public void jpg() {
HttpServletResponse response = this.getResponse();
response.setContentType("image/jpeg");