一、Springboot整合mybatis
maven中添加對資料庫與mybatis的依賴
添加application.properties關于mybatis的配置
mapper的xml檔案所在目錄需要在springboot啟動類中配置掃描
資料庫表設計
pojo
mapper
service
controller
一、Springboot整合mybatis
maven中添加對資料庫與mybatis的依賴
添加application.properties關于mybatis的配置
mapper的xml檔案所在目錄需要在springboot啟動類中配置掃描
資料庫表設計
pojo
mapper
service
controller