mybatis學習筆記-註解開發

1.mybatis中針對CRUD的註解一共四個 @Select @Insert @Update @Delete 2.步驟 (1)配置: (2)註解使用 在接口使用select註解 (3)dao接口處註解建立實體類屬性與數據庫表對應關係 (4)使用表 3.多表查詢 @One註解:一對一關聯查詢 @Many註解:一對多關聯查詢 fetchType屬性設置eager和lazy 4.註解使用二級緩存: 第
相關文章
相關標籤/搜索