forked from Olympic/NTO-2025-Backend-TeamTask
Win
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
package com.example.nto;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* TODO: ДОРАБОТАТЬ в рамках задания
|
||||
@@ -6,7 +10,16 @@ package com.example.nto;
|
||||
* МОЖНО: Добавлять методы, аннотации, зависимости
|
||||
* НЕЛЬЗЯ: Изменять название класса и пакета
|
||||
*/
|
||||
@SpringBootApplication
|
||||
public class App {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(App.class , args);
|
||||
}
|
||||
@RestController
|
||||
public static class HomeController {
|
||||
@GetMapping("/")
|
||||
public String home() {
|
||||
return "Сервер работает!";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user