15 lines
293 B
Java
15 lines
293 B
Java
![]() |
package com.example.springboot;
|
||
|
|
||
|
import org.springframework.web.bind.annotation.GetMapping;
|
||
|
import org.springframework.web.bind.annotation.RestController;
|
||
|
|
||
|
@RestController
|
||
|
public class HelloController {
|
||
|
|
||
|
@GetMapping("/")
|
||
|
public String index() {
|
||
|
return "Greetings from Spring Boot!";
|
||
|
}
|
||
|
|
||
|
}
|