首页>代码>spring boot入门快速开发java web应用实例>/springboot/src/main/java/controller/Application.java
package controller;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@EnableAutoConfiguration
public class Application {
 @RequestMapping("/")
 String home() {
 return "Hello spring boot!";
 }
 public static void main(String[] args) throws Exception {
 SpringApplication.run(Application.class, args);
 }
}
最近下载更多
微信网友_6391873320751104  LV1 2023年3月16日
jiranzuidaima  LV2 2020年4月26日
cex12345  LV4 2020年4月22日
dengjunjun  LV15 2020年4月18日
段朝洪  LV15 2020年1月11日
gardenia111  LV16 2019年7月15日
fengkun918  LV3 2019年5月5日
安安abc  LV6 2019年4月21日
wbbhappy  LV13 2019年4月4日
bai620123  LV16 2019年3月18日
最近浏览更多
哪里的完整版  LV7 2023年12月15日
guoyan  LV12 2023年7月14日
fuyouou  LV5 2023年6月18日
MHMHMHMH  LV12 2023年6月15日
guviva  LV6 2023年6月12日
微信网友_6391873320751104  LV1 2023年3月16日
abc562311934  LV4 2022年10月8日
小哼ovo  LV3 2022年5月24日
暂无贡献等级
刘亦菲9527  LV15 2022年1月25日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友