package com.example.demo;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class IndexController {
@RequestMapping("/index")
public String index(){
return "hello";
}
@RequestMapping("menu")
public String menu(){
return "menu";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
demo 2018-7-17 8.42.rar (24个子文件)
demo
mvnw.cmd 5KB
mvnw 6KB
src
test
java
com
example
demo
DemoApplicationTests.java 340B
main
resources
application.properties 250B
templates
hello.html 217B
menu.html 216B
static
test.css 25B
java
com
example
demo
IndexController.java 376B
DemoApplication.java 316B
target
generated-test-sources
test-annotations
generated-sources
annotations
classes
application.properties 250B
com
example
demo
DemoApplication.class 703B
IndexController.class 676B
templates
hello.html 217B
menu.html 216B
static
test.css 25B
test-classes
com
example
demo
DemoApplicationTests.class 622B
.idea
misc.xml 489B
compiler.xml 525B
workspace.xml 19KB
encodings.xml 172B
.mvn
wrapper
maven-wrapper.jar 46KB
maven-wrapper.properties 110B
pom.xml 2KB
.gitignore 268B
共 24 条
- 1
资源评论
- 西伯利亚大尾巴狼_zyj2018-10-31很有意思的说
qq_40783136
- 粉丝: 10
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功