2017年4月1日

springmvc复习笔记----文件上传multipartResolver

摘要: 结构 web.xml <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/jav 阅读全文

posted @ 2017-04-01 14:26 Honey_Badger 阅读(400) 评论(0) 推荐(0) 编辑

request获取各种路径

摘要: equest.getRealPath() 这个方法已经不推荐使用了,代替方法是: request.getSession().getServletContext().getRealPath() 在servlet里用this.getServletContect().getRealPath() 在stru 阅读全文

posted @ 2017-04-01 11:47 Honey_Badger 阅读(14416) 评论(0) 推荐(0) 编辑

springmvc复习笔记----Restful 风格,PathVariable获取 Url实例

摘要: 结构 包与之前相同 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/java 阅读全文

posted @ 2017-04-01 11:08 Honey_Badger 阅读(1936) 评论(0) 推荐(1) 编辑

springmvc复习笔记----springmvc姓名年龄例子:RequestParam 试水

摘要: 继续 继上节http://www.cnblogs.com/tk55/p/6652394.html 重要部分颜色突出 结构 包 web.xml 乱码处理方面设置 <url-pattern>*</url-pattern>对所有对象起作用 spring-mvc.xml index.jsp list.jsp 阅读全文

posted @ 2017-04-01 00:58 Honey_Badger 阅读(474) 评论(0) 推荐(0) 编辑

导航

github