詹总求救,我一登录项目就登不进去,然后按F12查看到时跨域问题,不知道怎么解决!詹总救急!
public class CrossDomainInterceptor implements Interceptor { @Override public void intercept(Invocation inv) { inv.getController().getResponse().addHeader("Access-Control-Allow-Origin", "*"); inv.invoke(); }}哪里需要跨域哪里就用@Before(CrossDomainInterceptor.class)
http://www.jfinal.com/share/260