dwz前端框架
cling_snail
这个作者很懒,什么都没留下…
展开
-
Spring表单提交日期类型报错,不进后台Controller层,ailed to convert from type java.lang.String to type java.util.Date
问题原因,前台表单提交到了Date格式的数据,后台编码时不能识别该日期格式,故而无法进入到Controller就被拦截!解决方法,在需要进行转换的Controller层加入如下代码,进行初始化转换。 /* * 表单提交日期绑定 */ @InitBinder public void initBinder(WebDataBinder binder) { Sim...原创 2018-04-20 18:10:49 · 929 阅读 · 1 评论 -
图片在页面上的写入和读取(框架:freemarker+mybatis+mysql)
1,首先保存商品图片,不要忘记以多媒体文件提交:enctype="multipart/form-data" 前台页面, freemarker中: <p style="width: auto;"> <label style="margin-left:140px; margin-top: 8px;" style="width:60px;"&原创 2018-08-07 15:47:45 · 753 阅读 · 0 评论