使用Springboot框架,定义了一个isRepost变量,使用IDEA生成get和set方法,但生成的get方法为IsRepost(),这就导致了前端接收的变量名变成了repost。
解决方案是手动将IsRepost()方法改成getIsRepost()
使用Springboot框架,定义了一个isRepost变量,使用IDEA生成get和set方法,但生成的get方法为IsRepost(),这就导致了前端接收的变量名变成了repost。
解决方案是手动将IsRepost()方法改成getIsRepost()