SpringBoot 新建自动生成配置 [2]

步骤如下

 

 

 

 

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class MyController {

    @RequestMapping("output")
    @ResponseBody
    public String out(){
        return "Hello Springboot";
    }
}
发布了92 篇原创文章 · 获赞 5 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/xfb1989/article/details/104015267