package com.test.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class HelloController {
@ResponseBody
@RequestMapping("/hello")
public String test(){
return "hello";
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
springboot项目Demo
共11个文件
xml:6个
java:2个
class:2个
需积分: 10 29 下载量 75 浏览量
2018-07-21
09:26:44
上传
评论
收藏 11KB ZIP 举报
温馨提示
运行App.class 打开网页输入http://localhost:8080/hello就能看到效果了
资源推荐
资源详情
资源评论
收起资源包目录
springboot.zip (11个子文件)
springboot
pom.xml 1KB
target
classes
com
test
App.class 652B
controller
HelloController.class 653B
generated-sources
annotations
src
test
java
main
resources
java
com
test
App.java 310B
controller
HelloController.java 370B
.idea
codeStyles
codeStyleConfig.xml 146B
misc.xml 513B
encodings.xml 172B
compiler.xml 531B
workspace.xml 16KB
springboot.iml 80B
共 11 条
- 1
资源评论
王侯将相
- 粉丝: 40
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功