2018-04-10 13:35
@JFinal
import com.jfinal.handler.Handler;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class MyHandler extends Handler {
@Override
public void handle(String target, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, boolean[] booleans) {
if(target.endsWith(".do")){
return;
}else{
this.next.handle(target, httpServletRequest, httpServletResponse, booleans);
}
}
}
我这样写的,不对,请问哪里有问题?
2018-04-10 11:31
@JFinal 这个问题解决了,还有个问题,我们的接口是原来的代码抽出来放在jfinal的框架里,别的系统会调用这些接口,现在希望调用地址不改变,http://10.180.27.112/centersrv/normalization/name.do?可是这样的地址后面带.do的我怎么配路由那儿就不行,根本进不去方法。