model.addAttribute("photo", "data:image/jpeg;base64," + Base64.getEncoder().encodeToString(photo) ); photo为从数据库中得到的流