当我使用"${#fields.hasErrors('whatever')}"时,我得到了这个错误
The identifier [#fields] is not a valid Java identifier as required by section 1.19 of the EL specification (Identifier ::= Java language identifier). This check can be disabled by setting the system property org.apache.el.parser.SKIP_
我有一个学生类,其中包含字段(firstName、lastName、手机和电子邮件等)和卫报类,其中一些字段具有相同的名称(firstName、lastName和电子邮件等)。在添加学生视图中,用户应该输入学生的详细信息以及学生的监护人的详细信息:<div th:object="${guardian}" class="form-details">Enter guardian's information