diff --git a/src/main/java/com/example/demo/DemoApplication.java b/src/main/java/com/example/demo/DemoApplication.java index e03ec75e4b2f963031777bdc65810aa597b72ba7..69a8d12463fa02791958dfe9f901eb7c4c928c62 100644 --- a/src/main/java/com/example/demo/DemoApplication.java +++ b/src/main/java/com/example/demo/DemoApplication.java @@ -1,12 +1,19 @@ package com.example.demo; -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.*; +import org.springframework.boot.autoconfigure.*; +import org.springframework.web.bind.annotation.*; @SpringBootApplication +@RestController public class DemoApplication { + @RequestMapping("/") + String home() { + return "Spring is here!"; + } + public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } -} +} \ No newline at end of file