随笔分类 -  SpringMVC

SpringMVC 常用注解
摘要:SpringMVC常用注解 @Controller @RequestMapping @RequstParam(name="name") String username 修饰参数(表单中得某个参数) 必填 @RequestBody String body 修饰参数 请求体(表单中得多个参数),异步得时 阅读全文
posted @ 2020-12-04 09:53 LeavesCai7 阅读(53) 评论(0) 推荐(0)
自定义类型转换
摘要:Date 第一步 实现 Convert 接口 public class StringToDate implements Convert<String,Date>{ public Date convert(String source){ if(source == null){ throw new Ru 阅读全文
posted @ 2020-12-04 09:41 LeavesCai7 阅读(69) 评论(0) 推荐(0)
配置解决中文乱码的过滤器
摘要:对 SpringMVC 的项目结构目录的 web.xml 进行过滤器配置 <!-- 配置解决中文乱码的过滤器 --> <filter> <filter-name>characterEncodingFilter</filter-name> <filter-class>org.springframewo 阅读全文
posted @ 2020-12-04 09:04 LeavesCai7 阅读(83) 评论(0) 推荐(0)
解决 maven 项目创建过慢的问题
摘要:在创建 maven工程 的时候添加一组键值对: archetypeCatalog internal 阅读全文
posted @ 2020-12-03 09:38 LeavesCai7 阅读(93) 评论(0) 推荐(0)