<input type="house" id="loggedUserId" th:each="cookie :${#httpServletRequest.getCookies()}"
th:if="${cookie.getName().equals('userId')}"
th:value="${cookie.getValue()}">
需要遍历该浏览器的所有cookie以获得对应值
<input type="house" id="loggedUserId" th:each="cookie :${#httpServletRequest.getCookies()}"
th:if="${cookie.getName().equals('userId')}"
th:value="${cookie.getValue()}">
需要遍历该浏览器的所有cookie以获得对应值