后台
RedirectAttributes redirectAttributes参数
redirectAttributes.addFlashAttribute("message", "未知账户");
前台themeleaf
<span th:text="${username}"></span>
后台
RedirectAttributes redirectAttributes参数
redirectAttributes.addFlashAttribute("message", "未知账户");
前台themeleaf
<span th:text="${username}"></span>
转载于:https://www.cnblogs.com/jack-zou/p/8508192.html