SpringBoot-Jpa报错:maybe not public or not valid?

访问项目时发现报错:org.springframework.expression.spel.SpelEvaluationException: EL1008E: Property or field 'movieid' cannot be found on object of type 'com.ytc.model.Movie' - maybe not public or not valid?

通过检查实体类发现是忘记生成GetSet方法。 

生成GetSet方法后,重启项目,重新访问。(GetSet快捷键:Alt+InsScrLk)

猜你喜欢

转载自blog.csdn.net/kking_Ran/article/details/127416789