package com.example.jz.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RestController; @RestController public class hello { @GetMapping("/hello") public String helloWorld(){ return "hello,world"; } }