SpringBoot+Mybatis+多數據源(僅供本身參考)

一、項目結構:html 二、正常建立項目,以上一篇SpringBoot+mybatis爲基礎。java 三、application.yml 配置多數據庫鏈接信息,本項目以兩個數據庫 test和world 爲例 (注意:較於單數據源的配置,多數據源的數據庫url 名稱 多個 jdbc)mysql spring: datasource: test: jdbc-url: jdbc
相關文章
相關標籤/搜索