spring boot 配置MyBatis,支持多個數據源和分頁插件

spring boot中的MyBatis配置是比較複雜的。 下面總結針對mySql數據庫的配置和使用的詳細過程(有兩個數據庫:名字爲test和my_db): 1、引入依賴: pom.xml文件中,添加: [html]  view plain  copy <!-- Begin of DB related -->       <dependency> <!-- for ChainedTransacti
相關文章
相關標籤/搜索