首页>代码>基于spring mvc+maven的demo实例>/SpringMVC/src/main/java/com/tuletech/web/controller/Test.java
package com.tuletech.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/test.do")
public class Test {
	
	/**
	 * @函数功能:处理多个请求
	 * @备注:http://xxxx/test.do?method=get,执行后输出“执行get”
	 * @创建人:任齐
	 * @return void
	 * @throws
	 */
	@RequestMapping(params = "method=get")
	public void get(){
		System.out.println("执行get");
	}
	
	@RequestMapping(params = "method=set")
	public void set(){
		System.out.println("执行set");
	}
	
}
最近下载更多
lvhongquan  LV11 2022年7月10日
a1677596408  LV23 2022年7月1日
zhijian992714  LV6 2022年2月17日
admin7777  LV14 2021年8月19日
remedy  LV1 2021年6月17日
杜老师  LV1 2021年5月12日
aaaahao  LV13 2021年3月20日
erwesdfe  LV2 2021年3月2日
wx1992926  LV2 2021年1月22日
lyws1986  LV17 2020年7月19日
最近浏览更多
张真狗  LV9 2023年5月22日
花落亦知秋 2023年5月22日
暂无贡献等级
2237851964  LV1 2023年2月26日
LITIANYU084414  LV11 2023年1月1日
南山难  LV4 2023年1月1日
43093307  LV4 2022年12月16日
lvhongquan  LV11 2022年7月10日
tomcat_test  LV2 2022年7月6日
a1677596408  LV23 2022年7月1日
zhijian992714  LV6 2022年2月17日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友