package com.zsq.msb.dexam;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;
@Controller
@EnableAutoConfiguration
public class Example {
@RequestMapping(value ="/home", method = RequestMethod.GET)
@ResponseBody
public String home(){
return "你好,Spring Boot";
}
public static void main(String[] args){
SpringApplication.run(Example.class, args);
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
Spring Boot简单实例代码
共25个文件
prefs:4个
xml:4个
lst:3个
3星 · 超过75%的资源 需积分: 49 147 下载量 130 浏览量
2017-02-13
18:14:47
上传
评论
收藏 11.83MB 7Z 举报
温馨提示
这个实例帮助开发者更容易地创建基于Spring Boot的应用程序,使得Spring开发者能够最快速地掌握Spring Boot的基本用法。这是一个简单的实例,完全可以跑起来的。
资源推荐
资源详情
资源评论
收起资源包目录
zsqSpringBoot.7z (25个子文件)
zsqSpringBoot
.project 1KB
src
test
resources
java
main
webapp
WEB-INF
web.xml 222B
index.jsp 57B
resources
java
com
zsq
msb
dexam
Example.java 846B
target
maven-status
maven-compiler-plugin
testCompile
default-testCompile
inputFiles.lst 0B
compile
default-compile
createdFiles.lst 32B
inputFiles.lst 83B
generated-sources
annotations
classes
com
zsq
msb
dexam
Example.class 1KB
META-INF
MANIFEST.MF 350B
maven
com.zsq.msb
zsqSpringBoot
pom.properties 240B
pom.xml 1KB
zsqSpringBoot-0.0.1-SNAPSHOT.jar 13.46MB
maven-archiver
pom.properties 130B
test-classes
zsqSpringBoot-0.0.1-SNAPSHOT.jar.original 3KB
.settings
org.eclipse.wst.jsdt.ui.superType.container 49B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 736B
org.eclipse.wst.validation.prefs 50B
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.core.resources.prefs 191B
org.eclipse.wst.common.component 769B
.jsdtscope 639B
pom.xml 1KB
.classpath 1KB
共 25 条
- 1
资源评论
- luoxuefeihualzq2017-08-21一般般,还要分不值得。
- 永不言弃2018-04-03还不错。。谢谢!!
- Junfeng__2018-07-10一般般,还要分不值得。
- haicheng202017-08-28项目导进去报错为啥?
张思全
- 粉丝: 462
- 资源: 13
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功