今天在做毕业实际的过程,报如下异常:

org.springframework.dao.InvalidDataAccessApiUsageException: The given object has a null identifier: com.paixie.domain.Users;

                出现这个异常,一般来说主要修改时候主键没有传递或者name属性指定错误。

            解决方案:你要把你的更新的实例的主键传过去,可以以hidden的方式传。

<s:hidden name="action中实例对象名.id" ></s:hidden>


 

相关文章:

  • 2021-07-09
  • 2021-08-27
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-04-24
  • 2022-12-23
  • 2021-07-10
  • 2022-12-23
  • 2021-05-25
  • 2021-08-17
  • 2022-12-23
相关资源
相似解决方案