Caused by: org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "emp.carNumber" (template: "carer/list" - line 76, col 29)
再往下看看有没有这个错误:
Caused by: org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'carNumber' cannot be found on object of type 'com.hxq.violation.bean.Violation' - maybe not public or not valid?
原因,,你懂的,实体类属性名和用的属性名不一致,
emp.carNumber
而我实体类属性写的是carName;
遇到这个错误的同学注意一下