package com.controller;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;
public class IndexController extends MultiActionController {
public ModelAndView method1(HttpServletRequest request,
HttpServletResponse respnose) throws ServletException, IOException {
Map model = new HashMap();
model.put("message", "你调用的是方法1");
return new ModelAndView("/index.jsp", "model", model);
}
public ModelAndView method2(HttpServletRequest request,
HttpServletResponse respnose) throws ServletException, IOException {
Map model = new HashMap();
model.put("message", "你调用的是方法2");
return new ModelAndView("/index.jsp", "model", model);
}
}
SpringMVC - MultiActionController
4星 · 超过85%的资源 需积分: 10 150 浏览量
2009-01-15
23:32:42
上传
评论
收藏 723KB RAR 举报
wsj1987
- 粉丝: 10
- 资源: 11
最新资源
- 办工,日常生活中电脑中的磁盘清理功能,可以查找本机的指定大小文件,非常方便!
- cuda-使用cuda并行加速实现之gemv.zip
- cuda-使用cuda并行加速实现之softmax.zip
- 基于Opencv的车牌识别系统
- cuda-使用cuda并行加速实现之reduce.zip
- 基于Protel 99se 超级元件库电子器件芯片库原理图库2MB(810个)+PCB封装库10MB(1240个)合集.zip
- mmexport1713919112597.jpg
- cuda-使用cuda并行加速实现之kmeans聚类算法的实现.zip
- web-work-2024-4-24
- cuda-使用cuda并行加速实现之UpsampleNearest2D.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈