Building an Application with Spring Boot :: Learn how to build an application with minimal configuration. https://spring.io/guides/gs/spring-boot/

HelloController.java 300B

12345678910111213141516
  1. package Hello;
  2. import org.springframework.web.bind.annotation.RequestMapping;
  3. import org.springframework.web.bind.annotation.RestController;
  4. @RestController
  5. public class HelloController {
  6. @RequestMapping("/")
  7. public String index() {
  8. return "Greetings from Spring Boot!";
  9. }
  10. }