My Lucky Cat

功能

  1. Debug必备,专职莫名奇妙的又难复现的Bug.
  2. 挖洞必备,开阔挖洞思路,增加挖洞灵感.
  3. 减压小助手,工作压力大,这只喵始终提醒你保持微笑和乐观心态.
  4. 孤单杀手, 你不是一个人在战斗,还有这只喵在陪着你!

附上靓照:

lucky cat

Read more...

Struts2 运行流程分析之doFilter

注意: 本文基于Struts2.2.1版本进行的代码分析 首先先大致看一下StrutsPrepareAndExecuteFilter.java的doFilter的实现 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException { HttpServletRequest request = (HttpServletRequest) req; HttpServletResponse response = (HttpServletResponse) res; try { // 设置request/response编码 prepare.
Read more...