print key/value in thymeleaf from hashmap/arraylist
问题 The code in java/springboot: @RequestMapping(value = "results") public String results( Model model, @RequestParam String searchType, @RequestParam String searchTerm) { model.addAttribute("columns", ListController.columnChoices); ArrayList<HashMap<String, String>> jobsbyval = JobData .findforValue(searchTerm); model.addAttribute("items", jobsbyval); return "search"; } The code in html/thymeleaf: <div> <table> <tbody> <tr th:each="item : ${items}"> <!--each loop begins --> <td th:text="${item}"