- 博客(2)
- 收藏
- 关注
原创 SpringBoot接口返回图片
使用 ResponseEntity 返回结果,设置HttpHeader中的content-type,如:image/png @RequestMapping(method = RequestMethod.GET) public ResponseEntity getFile(@RequestParam long id) { Result result = fileSe...
2018-12-28 12:16:21 10020 2
原创 SpringBoot接口接收Date参数,可以传入String类型
在SpringBoot启动类同级目录创建一个带有@ControllerAdvice注解的类@ControllerAdvicepublic class GlobalExceptionController { @InitBinder public void initBinder(WebDataBinder webDataBinder) { webDataBind...
2018-12-26 15:56:19 3101
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人