package com.glory.demo.Controller; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; @Controller public class testController { @RequestMapping("/hello") @ResponseBody String hello() { return "Hello world"; } }
原文地址:https://www.cnblogs.com/Guroer/p/9393414.html
时间: 2024-11-03 02:23:36