Spring Boot 整合 Jpa 多數據源

學習在 Spring Boot 中使用 Jpa 多數據源來操做不一樣的數據庫。java 1 建立工程並配置 新建 Spring Boot 項目 spring-boot-jpamulti ,添加 Web/JDBC/MySQL 依賴,以下:mysql 以後手動在 pom 文件中添加 Druid 數據庫鏈接池依賴(Spring Boot 版本),最終的依賴以下:git <dependencies>
相關文章
相關標籤/搜索