上一页 1 2 3 4 5 6 ··· 12 下一页
摘要: https://blog.csdn.net/ff906317011/article/details/78552426 阅读全文
posted @ 2021-01-28 10:33 Master_Sun 阅读(22) 评论(0) 推荐(0) 编辑
摘要: SpringMVC拦截器有许多应用场景,比如:登录认证拦截器,字符过滤拦截器,日志操作拦截器等等。 1、自定义拦截器 SpringMVC拦截器的实现一般有两种方式 1. 自定义的Interceptor类要实现了Spring的HandlerInterceptor接口。 2. 继承实现了HandlerI 阅读全文
posted @ 2021-01-27 16:15 Master_Sun 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 更详细:http://www.ruanyifeng.com/blog/2011/09/restful.html package com.xinzhi.controller; import com.alibaba.fastjson.JSONObject; import com.xinzhi.entit 阅读全文
posted @ 2021-01-27 12:28 Master_Sun 阅读(49) 评论(0) 推荐(0) 编辑
摘要: http://c.biancheng.net/view/4406.html https://blog.csdn.net/qq_28165595/article/details/76896354 @RequestMapping("/redirect") public String redirect() 阅读全文
posted @ 2021-01-27 10:56 Master_Sun 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 占坑 阅读全文
posted @ 2021-01-26 14:28 Master_Sun 阅读(27) 评论(0) 推荐(0) 编辑
摘要: 占坑 阅读全文
posted @ 2021-01-26 14:27 Master_Sun 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 占坑 阅读全文
posted @ 2021-01-26 14:22 Master_Sun 阅读(104) 评论(0) 推荐(0) 编辑
摘要: pom.xml <dependency> <groupId>com.alibaba</groupId> <artifactId>fastjson</artifactId> <version>1.2.8.sec10</version></dependency> 例子: 加上@ResponseBody, 阅读全文
posted @ 2021-01-26 13:56 Master_Sun 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 再也不用 getParamter 了 1. 建一个User类 package com.xinzhi.entity; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; impor 阅读全文
posted @ 2021-01-25 22:49 Master_Sun 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 在 web.xml 中配置一个字符集过滤器即可 <filter> <filter-name>CharacterEncodingFilter</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilt 阅读全文
posted @ 2021-01-25 22:00 Master_Sun 阅读(68) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 12 下一页