Springboot JPA執行原生SQL,自定義SQL佔位符增長參數

 JPA 實際上就是 Hibernate  的封裝,根據Interface 方法名,生成對應的方法,也支持Query註解的方式和原生SQL,原生SQL以下:html 一、註解@Query方式執行原生SQL語句: @Query(value = "select * from table_car_mark limit 0,10",nativeQuery = true) List<CarsMark> f
相關文章
相關標籤/搜索