package com.powernode.springboot.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class IndexController {
@RequestMapping (value="/springboot/say")
public @ResponseBody String say(){
return "Hello Springboot!";
}
}
2.使用springboot框架集成springmvc(springboot-002-springbootmvc)
于 2022-02-13 19:32:53 首次发布
关键词由CSDN通过智能技术生成