随笔分类 -  SpringMVC

摘要:https://segmentfault.com/a/1190000013341344 https://blog.csdn.net/u010235716/article/details/90171802 阅读全文
posted @ 2019-08-14 11:28 Rainyn 阅读(127) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/wqc19920906/article/details/80009929 https://blog.csdn.net/HL_smile90/article/details/76566286 阅读全文
posted @ 2019-07-17 14:49 Rainyn 阅读(532) 评论(0) 推荐(0) 编辑
摘要:SpringMVC在使用Jackson2时关于日期类型格式化的问题 如果无效,那么使用 @DateTimeFormat(pattern = "yyyy-MM-dd") 阅读全文
posted @ 2018-05-28 16:11 Rainyn 阅读(406) 评论(0) 推荐(0) 编辑
摘要:浅谈@RequestMapping @ResponseBody 和 @RequestBody 注解的用法与区别 Spring 2.5 版本新增了注解功能, 通过注解,代码编写简化了很多;但熟悉注解的使用,需要一个过程,如果不熟悉Spring 早期的版本,上来就使用注解,有些困难。这里,我们讨论下: 阅读全文
posted @ 2018-03-27 10:05 Rainyn 阅读(2828) 评论(0) 推荐(2) 编辑
摘要:一、配置阶段 ①web.xml ②DispatcherServlet //Spring MVC总入口 ③配置初始化参数 //classpath:application.xml,用于配置无数个bean ④servlet 请求路径配置,如/web/url, /*.json等 二、初始化阶段 ① 调用 s 阅读全文
posted @ 2018-03-03 15:52 Rainyn 阅读(300) 评论(0) 推荐(0) 编辑
摘要:SpringMVC 控制器Controller http://elim.iteye.com/blog/1753271 SpringMVC视图解析器 ViewResolver http://elim.iteye.com/blog/1770554 SpringMVC 中的拦截器Interceptor h 阅读全文
posted @ 2017-11-30 18:57 Rainyn 阅读(119) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/u010648555/article/details/51612030 阅读全文
posted @ 2017-11-30 02:02 Rainyn 阅读(269) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/s740556472/article/details/71023388 阅读全文
posted @ 2017-11-29 17:01 Rainyn 阅读(754) 评论(0) 推荐(0) 编辑
摘要:http://jinnianshilongnian.iteye.com/blog/1762632 http://blog.51cto.com/wenshengzhu/1700340 http://www.cnblogs.com/kevin-yuan/p/5068448.html 【转载】https: 阅读全文
posted @ 2017-11-29 16:39 Rainyn 阅读(4727) 评论(0) 推荐(3) 编辑
摘要:http://blog.csdn.net/qq_33510007/article/details/78549230 阅读全文
posted @ 2017-11-29 01:40 Rainyn 阅读(1296) 评论(0) 推荐(0) 编辑
摘要:https://my.oschina.net/HeliosFly/blog/205343 阅读全文
posted @ 2017-11-28 19:37 Rainyn 阅读(120) 评论(0) 推荐(0) 编辑
摘要:@responseBody注解的作用是将controller的方法返回的对象通过适当的转换器转换为指定的格式之后,写入到response对象的body区,通常用来返回JSON数据或者是XML 数据,需要注意的呢,在使用此注解之后不会再走试图处理器,而是直接将数据写入到输入流中,他的效果等同于通过re 阅读全文
posted @ 2017-10-22 17:12 Rainyn 阅读(162) 评论(0) 推荐(0) 编辑
摘要:controller 阅读全文
posted @ 2017-10-17 14:48 Rainyn 阅读(688) 评论(0) 推荐(0) 编辑