This is my code that is using JSP:
<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}"/>
This is what I try:
<input type="hidden" name="${_csrf.parameterName}" th:attr="value = ${_csrf.token}"/>
I dont know how to atributte a value to the name of the html.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…