2017-08-06 89 views

回答

1

你可以這樣返回Resource實例:

@GetMapping("/file") 
Mono<Resource> file() { 
    //Create a ClassPathResource, for example 
} 

注意,這個自動支持字節範圍的HTTP請求。