一、利用向导快速搭建Spring Boot应用

Spring Boot的快速创建Spring Boot的快速创建Spring Boot的快速创建Spring Boot的快速创建

创建一个controller

Spring Boot的快速创建

 

package com.hoje.springboot.Controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/*@RequestBody
@Controller*/
@RestController
public class HelloController {
    @RequestMapping("/hello")
    public  String hello(){
      return "hello world quick";
    }
}
HelloController

相关文章: