随笔分类 -  SpringMVC

摘要:private void initHandlerMappings(ApplicationContext context) { this.handlerMappings = null; if (this.detectAllHandlerMappings) { Map matchingBeans = BeanFactoryUtils.beans... 阅读全文
posted @ 2019-08-26 16:09 龙X 阅读(209) 评论(0) 推荐(0)
摘要:站在巨人的肩膀上 SpringMVC注解@initbinder解决类型转换问题 https://blog.csdn.net/c5113620/article/details/79023137 在使用SpringMVC的时候,经常会遇到表单中的日期字符串和JavaBean的Date类型的转换,而Spr 阅读全文
posted @ 2019-05-27 17:00 龙X 阅读(191) 评论(0) 推荐(0)
摘要:@InitBinder亲测有效,网上很多资料都说了一半,或者没有说明白, 我先简单的说下这个InitBinder是用来干嘛的,为什么要使用他,以及他出现的场景; 通常来说前后台在做交互的时候,有一个form转换的过程就是把表单数据转换成我们的DTO,专门用来接收前台数据; 这个时候就会有很多很东西值 阅读全文
posted @ 2019-05-26 10:15 龙X 阅读(255) 评论(0) 推荐(0)