| 123456789101112131415161718 |
- package hello;
-
- import io.swagger.annotations.ApiOperation;
- import org.springframework.web.bind.annotation.RequestMethod;
- import org.springframework.web.bind.annotation.RestController;
- import org.springframework.web.bind.annotation.RequestMapping;
-
- @RestController
- public class HelloController {
-
- @ApiOperation(value = "Get Index")
- @RequestMapping(method = RequestMethod.GET, value = "/index")
- public String index() {
- return "Greetings from Spring Boot!";
- }
-
- }
|