summaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/example
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/example')
-rw-r--r--src/main/java/com/example/demo/DemoApplication.java21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java
new file mode 100644
index 0000000..4d23b0a
--- /dev/null
+++ b/src/main/java/com/example/demo/DemoApplication.java
@@ -0,0 +1,21 @@
+package com.example.demo;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@SpringBootApplication
+public class DemoApplication {
+
+ @RequestMapping("/")
+ String home() {
+ return "Hello World!";
+ }
+
+ public static void main(String[] args) {
+ SpringApplication.run(DemoApplication.class, args);
+ }
+
+}