Thymeleaf - 변수(SpringEL)
·
Java & Spring/Thymeleaf
□ Controller@GetMapping("/variable") public String variable(Model model) { User userA = new User("userA", 10); User userB = new User("userB", 20); ArrayList list = new ArrayList(); list.add(userA); list.add(userB); HashMap map = new HashMap(); map.put("userA", userA); map.put("userB", userB); model.addAttribute("user", userA); ..