天天看點

springboot整合mybatis

添加mybatis pom.xml依賴

添加application.properties mysql配置

mysql test庫中建立account表,springboot添加account model類

建立DAO層接口

入口檔案加入@MapperScan掃描接口的路徑

添加操作接口

本文轉自 無心低語 51CTO部落格,原文連結:http://blog.51cto.com/fengzhankui/2064206,如需轉載請自行聯系原作者