摘要:
SpringMVC拦截器有许多应用场景,比如:登录认证拦截器,字符过滤拦截器,日志操作拦截器等等。 1、自定义拦截器 SpringMVC拦截器的实现一般有两种方式 1. 自定义的Interceptor类要实现了Spring的HandlerInterceptor接口。 2. 继承实现了HandlerI 阅读全文
摘要:
更详细:http://www.ruanyifeng.com/blog/2011/09/restful.html package com.xinzhi.controller; import com.alibaba.fastjson.JSONObject; import com.xinzhi.entit 阅读全文
摘要:
http://c.biancheng.net/view/4406.html https://blog.csdn.net/qq_28165595/article/details/76896354 @RequestMapping("/redirect") public String redirect() 阅读全文