0
#############################
###mysql datasource
############################
spring.datasource.url = jdbc:mysql://111.222.333.444:3306/source1
spring.datasource.username = root
spring.datasource.password = root
spring.datasource.driver-class-name= com.mysql.jdbc.Driver
#############################
###oracle datasource
############################
spring.datasource.oracle.url =jdbc:oracle:thin:test:@//localhost:1521/source2
spring.datasource.oracle.username =test
spring.datasource.oracle.password =test
spring.datasource.oracle.driver-class-name=oracle.jdbc.OracleDriver
###########################
###Spring JPA
##########################
#spring.jpa.database = mysql
spring.jpa.show-sql = true
spring.jpa.hibernate.ddl-auto = update
spring.jpa.hibernate.naming-strategy = org.hibernate.cfg.ImprovedNamingStrategy
spring.jpa.properties.hibernate.dialect = org.hibernate.dialect.MySQL5Dialect
我有MySQL的Spring JPA部分。Spring啓動JPA休眠多個Datasouce屬性設置
如何爲我的oracle數據源添加另一個Spring JPA部分?
如何同時使用甲骨文和MySQL使用JPA?根據你不能使用的彈簧啓動自動配置文件上
非常感謝