@RestController注解来控制处理Http请求,配合@RequestMapping 配置url映射使用。
@RestController
public class HelloFun {
@RequestMapping"/hello")
public String fun(){
return "fun";
}
}
@RestController注解来控制处理Http请求,配合@RequestMapping 配置url映射使用。
@RestController
public class HelloFun {
@RequestMapping"/hello")
public String fun(){
return "fun";
}
}