Spring MVC dynamically adding form elements
Use interface List instead of concrete class for the fieldArrayList
field.
Make the fieldArrayList field private.
@RequestMapping(value="/create", method= RequestMethod.GET). Requests using GET should only retrieve data, not create.
Extract the calls of hsr.getParameterValues and hsr.getParameter methods in separate methods.
Don't use meaningless variable names such as d, s1, s2.
Format code with your IDE. For example, in IDEA you can use the Ctrl+Alt+L hotkey.
Extract attribute and parameter names in constants.
@RequestMapping(value="/create", method=RequestMethod.POST) can be replaced with @PostMapping("/create").