創(chuàng)建java語言下一個(gè)demo程序手冊 :
1.創(chuàng)建對象(定義對象的字段 對象上增加@Data注解 )
2.定義數(shù)據(jù)庫操作(增刪改查)
3.定義映射關(guān)系(函數(shù)和數(shù)據(jù)庫操作的)
? 3.1 <resultMap>
? 3.2<select> 增刪改查條件語句
4.定義數(shù)據(jù)庫 表字段(創(chuàng)建數(shù)據(jù)庫 創(chuàng)建表)
? 4.1 輸入數(shù)據(jù)庫表創(chuàng)建信息
? 4.2 遠(yuǎn)程登錄數(shù)據(jù)庫
? 4.3 復(fù)制粘貼數(shù)據(jù)庫表信息 并執(zhí)行
5.定義接口
6.實(shí)現(xiàn)方法IMPL
? 6.1 在接口的實(shí)現(xiàn)類上增加@Service注解
? 6.2需要先定義變量 private A a
7.controller調(diào)用接口(類前標(biāo)記@RestController )