在 Spring-Data-JPA CrudRepository 中,"C" 的作用是什么?
In Spring-Data-JPA CrudRepository, what plays for "C"?
CRUD 代表 create, read, update, and delete。
因此,"C" 代表 "create"。
CrudRepository
中的什么方法对 "C" 起作用?
CrudRepository#save 可以更新现有实体(合并)或保留新创建的实体。
CRUD 代表 create, read, update, and delete。
因此,"C" 代表 "create"。
CrudRepository
中的什么方法对 "C" 起作用?
CrudRepository#save 可以更新现有实体(合并)或保留新创建的实体。