@Query(value="select * from search_key a where a.key_name like CONCAT('%',:keyName,'%') limit 1",nativeQuery=true)
List<SearchKey> findByKeyNameLimit(@Param("keyName") String keyName);
publicinterfaceDeviceRepositoryextendsJpaRepository<Device, Long>, JpaSpecificationExecutor<Device> {List<Device> findByUserId(Long id);
@Query(value = "select * from biz_device where create_time like CONCAT('%',:time,'%') order by ?#{#pageable}", nativeQuery = true)
Page<Device> findByCreateTimeLike(@Param("time")String time,Pageable pageable);
}
@Query(value="select * from search_key a where a.key_name like CONCAT('%',:keyName,'%') limit 1",nativeQuery=true) List&lt;SearchKey&gt; findByKeyNameLimit(@Param("keyName") String keyName);pub...