4 import java.util.stream.Collectors;
5 import lombok.extern.slf4j.Slf4j;
6 import org.springframework.stereotype.Controller;
7 import org.springframework.web.bind.annotation.ModelAttribute;
8 import org.springframework.web.bind.annotation.RequestMapping;
12 * Controller to demonstrate the behavior of checkboxes
17 public class DemoController
20 public String display(@ModelAttribute Form form)
23 "option={}, inner={}{}",
29 .map(entry -> entry.getKey() + "=" + entry.getValue())
30 .collect(Collectors.joining(", ", ", ", "")));