package com.itheima.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class HelloController {
@RequestMapping("/hello")
public String hello(){
String s = "hello spring boot";
return s;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
TestSpringBoot.zip (37个子文件)
TestSpringBoot
pom.xml 1KB
springbootinit
HELP.md 860B
mvnw.cmd 7KB
pom.xml 1KB
src
test
java
com
ocean
springbootinit
SpringbootinitApplicationTests.java 233B
main
resources
application.properties 1B
templates
static
java
com
ocean
springbootinit
HelloController.java 337B
SpringbootinitApplication.java 335B
.mvn
wrapper
maven-wrapper.properties 233B
maven-wrapper.jar 61KB
target
classes
application.properties 1B
com
ocean
springbootinit
SpringbootinitApplication.class 825B
HelloController.class 640B
generated-sources
annotations
testspringboot1
HELP.md 860B
mvnw.cmd 7KB
pom.xml 1KB
src
test
java
com
ocean
testspringboot1
Testspringboot1ApplicationTests.java 235B
main
resources
application.properties 1B
templates
static
java
com
ocean
testspringboot1
Testspringboot1Application.java 348B
.mvn
wrapper
maven-wrapper.properties 233B
maven-wrapper.jar 61KB
mvnw 11KB
.gitignore 395B
mvnw 11KB
.gitignore 395B
src
test
java
main
resources
java
com
itheima
controller
HelloController.java 349B
HelloApplication.java 323B
.idea
jarRepositories.xml 1KB
workspace.xml 7KB
misc.xml 971B
compiler.xml 1KB
gradle.xml 557B
.gitignore 184B
encodings.xml 455B
target
classes
com
itheima
HelloApplication.class 726B
controller
HelloController.class 665B
generated-sources
annotations
.gitignore 490B
共 37 条
- 1
资源评论
AI普惠行者
- 粉丝: 1679
- 资源: 125
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功