ReviewIn the previous section, we have implemented the Java classes. In this section, we will start writing the configuration files.
Table of ContentsPart 1: Introduction and Functional Specs
Part 2: Java classes
Part 3: XML configuration
Part 4: HTML form
Part 5: Running the Application
ConfigurationTo complete our application, here are the important configuration files that needs to be declared:
Pay attention to the CommonsMultipartResolver and the MappingJacksonJsonView.
- The CommonsMultipartResolver is a requirement for processing MultipartFile files
- The MappingJacksonJsonView is required for serializing JSON responses properly. The extractValueFromSingleKeyModel is meant to remove the wrapper object when responding with single key model (see the Stack Overflow link for details).
NextIn the next section, we will discuss the HTML form for uploading files. Click here to proceed.
Share the joy:
Subscribe by reader Subscribe by email Share