HelloController.java 306 B

12345678910111213
  1. package com.neo.controller;
  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 "Hello Spring Boot 2.0!";
  9. }
  10. }