SpringMVC小白入门
SpringMVC小白入门,基于某培训机构的学习笔记。
hoho_12
不积跬步,无以至千里。写代码,我们是认真的!
展开
-
Eclipse上安装spring开发插件
需求:在学习springMVC的时候,xml的配置不能使用快速提示。解决方案:本机上的eclipse未安装spring开发插件,下载并安装即可。 1.下载安装插件包:https://spring.io/tools/sts/all备注:我的eclipse版本是4.5的,这里下载地址为:http://download.springsource.com/release/TOOLS/update/3...原创 2018-04-01 16:20:13 · 291 阅读 · 0 评论 -
SpringMVC_HelloWorld
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/javaee" xsi:schemaLocation="http://java.sun.com原创 2018-04-01 17:14:40 · 203 阅读 · 0 评论 -
SpringMVC_RequestMapping_修饰类
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;@RequestMapping("/springmvc")@...原创 2018-04-05 11:10:08 · 235 阅读 · 0 评论 -
SpringMVC_RequestMapping_请求方式
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.b...原创 2018-04-05 11:27:08 · 1009 阅读 · 0 评论 -
SpringMVC_RequestMapping_请求参数&请求头
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.b...原创 2018-04-05 11:49:44 · 425 阅读 · 0 评论 -
SpringMVC_RequestMapping_Ant 路径
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.b...原创 2018-04-05 11:56:43 · 215 阅读 · 0 评论 -
SpringMVC_RequestMapping_PathVariable 注解
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bin...原创 2018-04-05 12:07:29 · 214 阅读 · 0 评论 -
SpringMVC_RequestMapping_HiddenHttpMethodFilter 过滤器
REST详解参考文章: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/javaee" xsi:schemaLocation="http://j原创 2018-04-05 13:00:38 · 302 阅读 · 0 评论 -
SpringMVC_RequestParam 注解
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bin...原创 2018-04-06 10:22:37 · 250 阅读 · 0 评论 -
SpringMVC_RequestHeader 注解
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.PathVariable;import org.springframework.web.bin...原创 2018-04-06 10:32:29 · 514 阅读 · 0 评论 -
SpringMVC_CookieValue 注解
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.CookieValue;import org.springframework.web.bind...原创 2018-04-06 10:41:19 · 253 阅读 · 0 评论 -
SpringMVC_使用POJO作为参数
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.CookieValue;import org.springframework.web.bind...原创 2018-04-06 11:03:03 · 496 阅读 · 0 评论 -
SpringMVC_使用Servlet原生API作为参数
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import java.io.IOException;import java.io.Writer;import javax.servlet.http.HttpServletRequest;import javax.servlet.http.HttpServletResponse;...原创 2018-04-06 11:20:28 · 329 阅读 · 0 评论 -
SpringMVC_处理模型数据之ModelAndView
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import java.io.IOException;import java.io.Writer;import java.util.Date;import javax.servlet.http.HttpServletRequest;import javax.servlet.htt...原创 2018-04-06 11:38:44 · 428 阅读 · 0 评论 -
SpringMVC_处理模型数据之Map
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import java.io.IOException;import java.io.Writer;import java.util.Arrays;import java.util.Date;import java.util.Map;import javax.servlet.ht...原创 2018-04-06 11:50:33 · 390 阅读 · 0 评论 -
SpringMVC_处理模型数据之SessionAttributes
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import java.io.IOException;import java.io.Writer;import java.util.Arrays;import java.util.Date;import java.util.Map;import javax.servlet.ht...原创 2018-04-06 12:07:57 · 374 阅读 · 0 评论 -
SpringMVC_ModelAttribute 注解
SpringMVCTest.javapackage com.wxh.springmvc.handlers;import java.io.IOException;import java.io.Writer;import java.util.Arrays;import java.util.Date;import java.util.Map;import javax.servlet.ht...原创 2018-04-06 15:19:15 · 355 阅读 · 0 评论