https://blog.csdn.net/qq_24084605/article/details/81098248
<span th:if="${param.error}" th:text="${session?.SPRING_SECURITY_LAST_EXCEPTION?.message}" class="help-block" style="color:red;"></span>
session?.SPRING_SECURITY_LAST_EXCEPTION?.message 在每个"."前面增加? 即可