![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springmvc
Fu_si
这个作者很懒,什么都没留下…
展开
-
Springmvc学习-Springmvc08-interceptor(拦截器)
Springmvc08-interceptor(拦截器)在springmvc中注册拦截器 <!-- 注册拦截器 --> <mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/**"/> <!-- /**拦截所有请求 --> <!--...原创 2020-03-02 20:11:46 · 154 阅读 · 0 评论 -
Springmvc学习-Springmvc07-文件的上传和下载
Springmvc07-文件的上传和下载1. 多文件的上传(客户端上传至服务端)在spring里注册文件上传解析器。<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/...原创 2020-03-02 20:02:50 · 129 阅读 · 0 评论 -
Springmvc学习-Springmvc06-redirect
Springmvc06-redirectpackage com.caorui.handlers;import org.springframework.stereotype.Controller;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bin...原创 2020-03-02 19:43:23 · 191 阅读 · 0 评论 -
Springmvc学习-Springmvc05-return
Springmvc05-return1. 承载信息的对象Model、Map<String, Object>、ModelMappackage com.caorui.handlers;import java.util.Map;import org.springframework.context.annotation.Scope;import org.springfram...原创 2020-03-02 19:38:47 · 151 阅读 · 0 评论 -
Springmvc学习-Springmvc04-recieveParameter(2)
Springmvc04-recieveParameter3. arrayOrCollectionindex.jsp<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTM...原创 2020-02-28 19:29:23 · 141 阅读 · 0 评论 -
Springmvc学习-Springmvc04-recieveParameter(1)
Springmvc03-recieveParameter1. property单纯的只是收到property。spring自带类型转换 提交的表单name值和方法的形参名一致才能接受,不一致不能接受,但是可以通过RequestParam(“username”)参数校正。index.jsp<%@ page language="java" contentType="text/html...原创 2020-02-28 18:02:36 · 115 阅读 · 0 评论 -
Springmvc学习-Springmvc03-注册视图解析器
Springmvc03-注册视图解析器1. 在springmvc.xml注册视图解析器<!-- 注册视图解析器 --> <bean class="org.springframework.web.servlet.view.InternalResourceViewResolver"> <property name="prefix" value="/jsp...原创 2020-02-28 17:32:01 · 187 阅读 · 0 评论 -
Springmvc学习-Springmvc02-静态资源放行
Springmvc02-静态资源放行问题1. 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:schemaL...原创 2020-02-28 17:15:35 · 152 阅读 · 0 评论 -
Springmvc学习-Springmvc01-基础配置
Springmvc01-基础配置准备的jarcom.springsource.org.apache.commons.logging-1.1.1.jarspring-aop-4.1.6.RELEASE.jarspring-beans-4.1.6.RELEASE.jarspring-context-4.1.6.RELEASE.jarspring-context-support-4.1.6...原创 2020-02-28 16:54:56 · 175 阅读 · 0 评论