按照示例提交第一个源代码
This commit is contained in:
parent
293cff8dd6
commit
9a0ce77cef
@ -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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user