October 2018
Intermediate to advanced
982 pages
23h 29m
English
With our reactive image service in place, we can start to work on the reactive file controller.
For starters, let's create a HomeController as shown here:
@Controller
public class HomeController {
private static final String BASE_PATH = "/images";
private static final String FILENAME = "{filename:.+}";
private final ImageService imageService;
public HomeController(ImageService imageService) {
this.imageService = imageService;
}
The preceding code can be described as follows:
Read now
Unlock full access