2018-03-21 22:53

Starting Complete. Welcome To The JFinal World :)
Handler IP is:192.168.1.100

JFinal action report -------- 2018-03-21 22:50:04 ------------------------------
Url : GET /
Controller : com.demo.index.IndexController.(IndexController.java:1)
Method : index
--------------------------------------------------------------------------------
Handler IP is:192.168.1.100
Handler IP is:192.168.1.100
Before invoking /blog
After invoking /blog

JFinal action report -------- 2018-03-21 22:50:07 ------------------------------
Url : GET /blog
Controller : com.demo.blog.BlogController.(BlogController.java:1)
Method : index
Interceptor : com.demo.blog.BlogInterceptor.(BlogInterceptor.java:1)
--------------------------------------------------------------------------------
Handler IP is:192.168.1.100
Before invoking /blog/add
After invoking /blog/add

JFinal action report -------- 2018-03-21 22:50:09 ------------------------------
Url : GET /blog/add
Controller : com.demo.blog.BlogController.(BlogController.java:1)
Method : add
Interceptor : com.demo.blog.BlogInterceptor.(BlogInterceptor.java:1)
--------------------------------------------------------------------------------
Handler IP is:192.168.1.100
Before invoking /blog/save
After invoking /blog/save

JFinal action report -------- 2018-03-21 22:50:19 ------------------------------
Url : POST /blog/save
Controller : com.demo.blog.BlogController.(BlogController.java:1)
Method : save
Interceptor : com.demo.blog.BlogInterceptor.(BlogInterceptor.java:1)
com.demo.blog.BlogValidator.(BlogValidator.java:1)
Parameter : blog.content=不错 blog.id= blog.title=天气
--------------------------------------------------------------------------------
Handler IP is:192.168.1.100
Before invoking /blog
After invoking /blog

2018-03-21 22:52

Handler IP is:192.168.1.100
Before invoking /blog
After invoking /blog

JFinal action report -------- 2018-03-21 22:50:33 ------------------------------
Url : GET /blog
Controller : com.demo.blog.BlogController.(BlogController.java:1)
Method : index
Interceptor : com.demo.blog.BlogInterceptor.(BlogInterceptor.java:1)
不过有可能是/的原因,你前面提到的,我发现/blog下面不会出现2次。

2018-03-21 22:44

package com.demo.handler;
/*
* 处置IP,当IP处于白名单或黑名单中,进行下一步处理
*/

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.demo.utils.Ipkit;
import com.jfinal.handler.Handler;

public class IPHandler extends Handler{

@Override
public void handle(String target, HttpServletRequest request, HttpServletResponse response, boolean[] isHandled) {
String ip = Ipkit.getRealIp(request);
System.out.println("Handler IP is:"+ip);

next.handle(target, request, response, isHandled);

}

}

2017-03-31 18:28

@JFinal 说的是,认真看一遍和看一遍差别是很大的。

2016-08-07 11:53

社区形成后,一定会火起来

2016-07-13 09:40

@JFinal,是否开启一个插件版块,增加邮件、任务调度、数据库升级集成等,做出类似于flask?

2016-07-12 11:52

Throwables在哪个包,ResourceKit在哪个包