对于Spring Data JPA 进行指定字段进行更新时,可以使用下列代码. @Modifying @Query("update User u set u.firstname = ?1 where u.lastname = ?2") ...
確定! 回上一頁