application.properties 626 B

123456789101112131415
  1. #primary
  2. spring.primary.datasource.url=jdbc:mysql://localhost:3306/test1
  3. spring.primary.datasource.username=root
  4. spring.primary.datasource.password=root
  5. spring.primary.datasource.driver-class-name=com.mysql.jdbc.Driver
  6. #secondary
  7. spring.secondary.datasource.url=jdbc:mysql://localhost:3306/test2
  8. spring.secondary.datasource.username=root
  9. spring.secondary.datasource.password=root
  10. spring.secondary.datasource.driver-class-name=com.mysql.jdbc.Driver
  11. #multiple Setting
  12. spring.jpa.properties.hibernate.hbm2ddl.auto=update
  13. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  14. spring.jpa.show-sql= true