package com.ngxe.springmvc;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.ui.ModelMap;
@Controller
@RequestMapping("/hello")
public class HelloController{
@RequestMapping(method = RequestMethod.GET)
public String printHello(ModelMap model) {
model.addAttribute("message", "Hello Spring MVC Framework!");
return "hello";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
HelloWeb.rar (31个子文件)
HelloWeb
pom.xml 2KB
target
classes
com
ngxe
springmvc
HelloController.class 965B
generated-sources
annotations
HelloWeb.iml 2KB
src
test
java
main
resources
java
com
ngxe
springmvc
HelloController.java 536B
.idea
misc.xml 473B
jarRepositories.xml 864B
modules.xml 263B
compiler.xml 642B
workspace.xml 4KB
.gitignore 190B
libraries
Maven__org_springframework_spring_context_4_1_7_RELEASE.xml 637B
Maven__aopalliance_aopalliance_1_0.xml 514B
Maven__org_springframework_spring_webmvc_4_1_7_RELEASE.xml 630B
Maven__commons_logging_commons_logging_1_2.xml 558B
Maven__org_springframework_spring_expression_4_1_7_RELEASE.xml 658B
Maven__org_springframework_spring_web_4_1_7_RELEASE.xml 609B
Maven__org_springframework_spring_core_4_1_7_RELEASE.xml 616B
Maven__org_springframework_spring_beans_4_1_7_RELEASE.xml 623B
Maven__tomcat_servlet_api_5_5_23.xml 515B
Maven__org_springframework_spring_aop_4_1_7_RELEASE.xml 609B
artifacts
HelloWeb_war_exploded.xml 507B
out
artifacts
HelloWeb_war_exploded
META-INF
MANIFEST.MF 109B
WEB-INF
HelloWeb-servlet.xml 718B
web.xml 723B
classes
com
ngxe
springmvc
HelloController.class 965B
jsp
hello.jsp 330B
index.jsp 299B
web
WEB-INF
HelloWeb-servlet.xml 946B
web.xml 723B
jsp
hello.jsp 330B
index.jsp 299B
共 31 条
- 1
资源评论
月落玄衣
- 粉丝: 138
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功