0
点赞
收藏
分享

微信扫一扫

第一个SpringBoot_HelloWorld程序

i奇异 2022-02-05 阅读 116

文件结构
在这里插入图片描述

application.properties

server.port=9999

DemoController.java

@RestController
public class DemoController {
    @GetMapping("/hello")
    public String demo(){
        return "Hello World";
    }
}

运行后访问localhost:9999/hello

举报

相关推荐

0 条评论