@RestController
public class RestTestController {
@RequestMapping(value = "/rest_test/{id}")
public Integer restTest(@PathVariable Integer id){
return id;
}
}
Spring Boot集成Rest简单例子
最新推荐文章于 2022-03-09 07:49:56 发布
@RestController
public class RestTestController {
@RequestMapping(value = "/rest_test/{id}")
public Integer restTest(@PathVariable Integer id){
return id;
}
}