package com.landsem.demo.annotation;
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.servlet.ModelAndView;
@Controller
public class OtherController {
@RequestMapping(value="/otherController")
public ModelAndView welcome(HttpServletRequest request, HttpServletResponse response){
System.out.println("OtherController annotation hello.");
// TODO Auto-generated method stub
return new ModelAndView("hello");
}
@RequestMapping(value="/otherController2")
public ModelAndView welcome2(HttpServletRequest request, HttpServletResponse response){
System.out.println("OtherController2 annotation hello.");
// TODO Auto-generated method stub
return new ModelAndView("hello");
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
SpringMvcDemo2.zip (51个子文件)
SpringMvcDemo2
.project 2KB
.settings
.jsdtscope 500B
org.eclipse.wst.common.component 480B
org.eclipse.jdt.core.prefs 395B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.jsdt.ui.superType.name 6B
.mymetadata 315B
WebRoot
WEB-INF
web.xml 1KB
jsp
hello.jsp 849B
lib
commons
commons-lang-2.4.jar 256KB
commons-logging-1.2.jar 60KB
commons-httpclient-3.0.1.jar 273KB
commons-io-1.4.jar 106KB
commons-beanutils-1.7.0.jar 184KB
commons-fileupload-1.2.1.jar 56KB
commons-codec-1.9.jar 258KB
commons-collections-3.2.1.jar 562KB
spring3.0
spring-orm-3.2.0.RELEASE.jar 383KB
spring-webmvc-3.2.0.RELEASE.jar 621KB
spring-aop-3.2.0.RELEASE.jar 327KB
spring-core-3.2.0.RELEASE.jar 843KB
spring-webmvc-portlet-3.2.0.RELEASE.jar 184KB
spring-web-3.2.0.RELEASE.jar 610KB
spring-security-taglibs-3.0.2.RELEASE.jar 18KB
spring-beans-3.2.0.RELEASE.jar 591KB
spring-security-core-3.0.2.RELEASE.jar 298KB
spring-jdbc-3.2.0.RELEASE.jar 392KB
spring-context-3.2.0.RELEASE.jar 834KB
spring-tx-3.2.0.RELEASE.jar 235KB
spring-security-config-3.0.2.RELEASE.jar 157KB
spring-context-support-3.2.0.RELEASE.jar 124KB
spring-security-web-3.0.2.RELEASE.jar 230KB
spring-expression-3.2.0.RELEASE.jar 189KB
spring-aspects-3.2.0.RELEASE.jar 68KB
spring-security-acl-3.0.2.RELEASE.jar 76KB
classes
spring-servlet.xml 1KB
log4j.properties 244B
com
landsem
demo
annotation
OtherController.class 1KB
CatController.class 1009B
DogController.class 1009B
applicationContext.xml 347B
index.jsp 834B
META-INF
MANIFEST.MF 36B
.myeclipse
src
spring-servlet.xml 1KB
log4j.properties 244B
com
landsem
demo
annotation
DogController.java 623B
CatController.java 622B
OtherController.java 916B
applicationContext.xml 347B
.classpath 3KB
共 51 条
- 1
资源评论
- 夜星云2016-09-28非常好,适合初学者学校
yingxian_Fei
- 粉丝: 123
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- Python 常用标准库模块 1
- 弱电系统方案设计安防监控技术资料门禁网络工程图纸报价资料图纸案例典型案例:万达消防系统图
- 一篇精雕细琢的 Python 进阶总结
- man,what can I say;
- 弱电系统方案设计安防监控技术资料门禁网络工程图纸报价资料图纸案例第四篇:电缆分接箱部分
- 一篇精雕细琢的 Python 入门总结
- 基于 vxe-table 表格的适配插件,用于兼容 ant-design-vue 组件库
- 弱电系统方案设计安防监控技术资料门禁网络工程图纸报价资料图纸案例第三部分:开关站通用设计模块(24张)
- 基于 vxe-table 表格的适配插件,用于兼容 element-ui、element-plus 组件库
- unity读取表格用到的dll文件
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功