Spring Boot
1、建立文件
打开eclipse ->上面一栏file ->new ->Spring Starter project
然后next
只勾选Spring Web ->Finish
2、创建Controller
在demo文件夹下创建文件夹controller
在controller文件夹下,建立文件testController.class文件
代码如下:
package com.example.demo.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class testController {
@RequestMapping("/hello")
public String hello(