package com.controller;
/**
* @author fantasy
* @create 2018-01-11 10:51
**/
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class IndexController {
//返回字符串
@ResponseBody
@RequestMapping(value = "/HelloWord")
public String HelloWord(){
return "HelloWord";
}
//返回jsp视图
@RequestMapping(value = "/index")
public String index(Model model){
model.addAttribute("name","jsp页面展示");
return "index";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
IDEA 搭建Spring MVC环境示例1
共75个文件
jar:34个
xml:32个
jsp:4个
1星 需积分: 40 13 下载量 6 浏览量
2018-01-11
14:37:35
上传
评论
收藏 12.22MB RAR 举报
温馨提示
IDEA 搭建Spring MVC环境示例,使用springmvc的插件来搭建(方法一) IDEA 搭建Spring MVC环境示例,使用springmvc的插件来搭建(方法一)
资源推荐
资源详情
资源评论
收起资源包目录
springmvc.rar (75个子文件)
springmvc
pom.xml 2KB
target
classes
spring-mvc.xml 3KB
com
controller
IndexController.class 1023B
generated-sources
annotations
SpringMvcDemo-1.0-SNAPSHOT
META-INF
MANIFEST.MF 93B
WEB-INF
web.xml 2KB
dispatcher-servlet.xml 307B
views
index.jsp 306B
classes
spring-mvc.xml 3KB
com
controller
IndexController.class 1023B
lib
spring-beans-4.1.6.RELEASE.jar 692KB
aopalliance-1.0.jar 4KB
spring-expression-4.1.6.RELEASE.jar 253KB
spring-context-4.1.6.RELEASE.jar 1002KB
spring-web-4.1.6.RELEASE.jar 702KB
spring-test-4.1.6.RELEASE.jar 491KB
spring-aop-4.1.6.RELEASE.jar 351KB
spring-context-support-4.1.6.RELEASE.jar 174KB
commons-logging-1.2.jar 60KB
spring-core-4.1.6.RELEASE.jar 984KB
javax.servlet-api-3.1.0.jar 94KB
spring-webmvc-4.1.6.RELEASE.jar 762KB
applicationContext.xml 307B
index.jsp 306B
src
test
java
main
resources
spring-mvc.xml 3KB
java
com
controller
IndexController.java 753B
.idea
misc.xml 581B
modules.xml 258B
compiler.xml 630B
workspace.xml 25KB
libraries
Spring_MVC_4_3_13_RELEASE.xml 565B
Maven__aopalliance_aopalliance_1_0.xml 514B
Maven__org_springframework_spring_context_support_4_1_6_RELEASE.xml 693B
Maven__org_springframework_spring_webmvc_4_1_6_RELEASE.xml 630B
Maven__junit_junit_4_12.xml 455B
Spring_4_3_13_RELEASE.xml 2KB
Maven__org_springframework_spring_expression_4_1_6_RELEASE.xml 658B
Maven__org_hamcrest_hamcrest_core_1_3.xml 532B
Maven__commons_logging_commons_logging_1_2.xml 558B
Maven__org_springframework_spring_beans_4_1_6_RELEASE.xml 623B
Maven__org_springframework_spring_test_4_1_6_RELEASE.xml 616B
Maven__org_springframework_spring_aop_4_1_6_RELEASE.xml 609B
Maven__org_springframework_spring_context_4_1_6_RELEASE.xml 637B
Maven__javax_servlet_javax_servlet_api_3_1_0.xml 578B
Maven__org_springframework_spring_core_4_1_6_RELEASE.xml 616B
Maven__org_springframework_spring_web_4_1_6_RELEASE.xml 609B
artifacts
springmvc_war_exploded.xml 2KB
springmvc_war.xml 310B
inspectionProfiles
springmvc.iml 3KB
web
WEB-INF
web.xml 2KB
dispatcher-servlet.xml 307B
views
index.jsp 306B
applicationContext.xml 307B
index.jsp 156B
lib
spring-oxm-4.3.13.RELEASE.jar 83KB
spring-webmvc-portlet-4.3.13.RELEASE.jar 173KB
spring-beans-4.3.13.RELEASE.jar 745KB
spring-webmvc-4.3.13.RELEASE.jar 896KB
aopalliance-1.0.jar 4KB
spring-expression-4.3.13.RELEASE.jar 258KB
spring-context-4.3.13.RELEASE.jar 1.09MB
spring-jms-4.3.13.RELEASE.jar 283KB
spring-instrument-4.3.13.RELEASE.jar 7KB
spring-websocket-4.3.13.RELEASE.jar 446KB
spring-core-4.3.13.RELEASE.jar 1.07MB
spring-aop-4.3.13.RELEASE.jar 371KB
spring-test-4.3.13.RELEASE.jar 588KB
spring-instrument-tomcat-4.3.13.RELEASE.jar 10KB
spring-orm-4.3.13.RELEASE.jar 467KB
spring-web-4.3.13.RELEASE.jar 806KB
spring-context-support-4.3.13.RELEASE.jar 183KB
spring-messaging-4.3.13.RELEASE.jar 377KB
commons-logging-1.2.jar 60KB
spring-tx-4.3.13.RELEASE.jar 261KB
spring-aspects-4.3.13.RELEASE.jar 57KB
spring-jdbc-4.3.13.RELEASE.jar 418KB
共 75 条
- 1
资源评论
- wjq2272021-02-09垃圾资源,别下载,没有提到任何插件
fantasyxl99
- 粉丝: 4
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功