就像评论中提到的@Peter一样,只需添加
IgnoreCase:
public interface DeviceTypeRepository extends CrudRepository<DeviceType, Integer>, JpaSpecificationExecutor<DeviceType> { public Iterable<DeviceType> findByNameContainingIgnoreCase(String name);} 请参阅文档,以获取方法名称中所有受支持的关键字的列表。



