一、利用向导快速搭建Spring Boot应用
创建一个controller
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"; } }