刚学Java 做项目时报了一个错误 一时间看的莫名其妙
EL1008E: Property or field 'createTime' cannot be found on object of type 'java.util.HashMap' - maybe not public or not valid?
随即向上排查至第一个报错,发现是thymeleaf渲染时报错。
Exception processing template "/site/notice": An error happened during template parsing (template: "class path resource [templates//site/notice.html]")
找到controller中相应方法处排查。
@RequestMapping(path = "/notice/list", method = RequestMethod.GET)
发现因为一时手滑加上自己对Java不熟悉导致找bug找了一个多小时。