package com.kj.ajax;
import java.io.OutputStream;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import com.kj.pojo.Student;
@Controller
public class TestController {
@RequestMapping(value="/method01.do", method=RequestMethod.GET)
public String method01(Student stu){
System.out.println("----get提交 ----");
System.out.println(stu);
return null;
}
@RequestMapping(value="/method02.do", method=RequestMethod.POST)
public String method02(Student stu, HttpServletResponse response){
System.out.println("----post提交----");
try{
System.out.println(stu);
PrintWriter pw = response.getWriter();
pw.write("Yes");
pw.flush();
}catch (Exception e) {
e.printStackTrace();
}
return null;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
spring_mvc_ajax.zip_SpringMVC ajax_SpringMVC+ajax_spring ajax_sp
共48个文件
jar:25个
xml:4个
jsp:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 6 浏览量
2022-09-23
02:41:03
上传
评论
收藏 6.02MB ZIP 举报
温馨提示
Ajax实现异步请求+基于SpringMVC
资源推荐
资源详情
资源评论
收起资源包目录
spring_mvc_ajax.zip (48个子文件)
spring_mvc_ajax
.settings
com.genuitec.eclipse.j2eedt.core.prefs 1009B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.core.resources.prefs 75B
org.eclipse.wst.common.component 481B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 364B
src
com
kj
pojo
Student.java 470B
ajax
TestController.java 1KB
applicationContext.xml 1KB
.project 2KB
WebRoot
list.jsp 1KB
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 827B
classes
com
kj
pojo
Student.class 982B
ajax
TestController.class 2KB
applicationContext.xml 1KB
JSP
test3.jsp 844B
lib
spring-beans-3.2.9.RELEASE.jar 599KB
spring-tx-3.2.9.RELEASE.jar 237KB
spring-aspects-3.2.9.RELEASE.jar 50KB
spring-context-3.2.9.RELEASE.jar 846KB
spring-jdbc-3.2.9.RELEASE.jar 396KB
commons-io-1.2.jar 64KB
spring-context-support-3.2.9.RELEASE.jar 126KB
spring-webmvc-portlet-3.2.9.RELEASE.jar 184KB
spring-orm-3.2.9.RELEASE.jar 376KB
spring-instrument-tomcat-3.2.9.RELEASE.jar 10KB
spring-web-3.2.9.RELEASE.jar 618KB
spring-webmvc-3.2.9.RELEASE.jar 623KB
spring-struts-3.2.9.RELEASE.jar 35KB
spring-build-src-3.2.9.RELEASE.jar 71KB
commons-logging-1.1.3.jar 61KB
spring-instrument-3.2.9.RELEASE.jar 7KB
commons-fileupload-1.2.1.jar 56KB
spring-oxm-3.2.9.RELEASE.jar 74KB
spring-expression-3.2.9.RELEASE.jar 192KB
spring-framework-bom-3.2.9.RELEASE.jar 6KB
spring-core-3.2.9.RELEASE.jar 864KB
spring-test-3.2.9.RELEASE.jar 447KB
commons-lang3-3.2.jar 376KB
spring-aop-3.2.9.RELEASE.jar 330KB
spring-jms-3.2.9.RELEASE.jar 201KB
js
jquery-3.2.1.js 262KB
index.jsp 900B
files
.mymetadata 318B
.classpath 529B
.myeclipse
共 48 条
- 1
资源评论
小贝德罗
- 粉丝: 69
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功