Spring Data CrudRepository deleteById Method: Parameter Type and Usage
No, the 'deleteById' method in the 'CrudRepository' interface cannot accept a 'String' argument. The 'ID' parameter in the method signature represents the type of the identifier for the entity. It is typically a numeric or object type (e.g., 'Long', 'Integer', or 'UUID'). If you try to pass a 'String' argument, it will result in a compilation error.
原文地址: https://www.cveoy.top/t/topic/pmut 著作权归作者所有。请勿转载和采集!