Property or field ‘timestamp‘ cannot be found on object of type org.springframework.ui.modelmap‘

Property or field ‘timestamp‘ cannot be found on object of type org.springframework.ui.modelmap‘
这是访问某个方法的时候报的一个错,很奇怪,因为报错的方法根本没涉及到timestamp,怎么也百度不到对应的解决办法,直到偶然看到一篇帖子里是这样写的:
Property or field ‘timestamp‘ cannot be found on object of type org.springframework.ui.modelmap‘
我顿时感觉是springmvc流程出问题了,返回的ModelAndView错误,所以去看了下实现类的代码,
Property or field ‘timestamp‘ cannot be found on object of type org.springframework.ui.modelmap‘

发现果然是少了个@RestController的问题,才导致整个流程出问题了.加上就好使了.