@PostMapping("/add")
String addPost(@RequestParam String title,@RequestParam Integer price, Authentication auth, Model model){
itemService.saveItem(title, price);
model.addAttribute("username", auth.getName());
return "redirect:/list";
}
<span th:text="${username}">이름</span>
이렇게 해서 상품추가시 아이디를 list.html에 박는 형식으로 했는데 안되어서 질문드립니다.