按照示例提交第一个源代码

This commit is contained in:
YuCheng Hu 2021-01-09 09:58:54 -05:00
parent 293cff8dd6
commit 9a0ce77cef
No known key found for this signature in database
GPG Key ID: 1E5CBEF8B550FB7D

View File

@ -0,0 +1,18 @@
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.web.bind.annotation.*;
@RestController
@EnableAutoConfiguration
public class Example {
@RequestMapping("/")
String home() {
return "Hello World!";
}
public static void main(String[] args) {
SpringApplication.run(Example.class, args);
}
}