排查前端接受后端的map产生的字段错误
报错内容
[Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingException: Exception evaluating SpringEL expression: "map.likeCount" (template: "/index" - line 151, col 67)] with root cause
Property or field 'likeCount' cannot be found on object of type 'java.util.HashMap' - maybe not public or not valid
之前就遇到过这样的问题,又出现了,所以进行排查总结一下
最终在后端控制器发现传递的数大小写写错了
浙公网安备 33010602011771号