经过一番调查,我发现实际上是Spring EL问题。因此,使用null检查的完整答案是:
<div id="errors" th:if="${(param.error != null) and (param.error[0] == 'true')}"> Input is incorrect</div>
经过一番调查,我发现实际上是Spring EL问题。因此,使用null检查的完整答案是:
<div id="errors" th:if="${(param.error != null) and (param.error[0] == 'true')}"> Input is incorrect</div>