application-testcontainers.yml 1.1 KB

123456789101112131415161718192021222324252627
  1. # ===================================================================
  2. # Spring Boot configuration.
  3. #
  4. # This configuration is used for unit/integration tests with testcontainers database containers.
  5. #
  6. # To activate this configuration launch integration tests with the 'testcontainers' profile
  7. #
  8. # More information on database containers: https://www.testcontainers.org/modules/databases/
  9. # ===================================================================
  10. spring:
  11. datasource:
  12. type: com.zaxxer.hikari.HikariDataSource
  13. driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
  14. url: jdbc:tc:mysql:8.0.27:///carbonlibra?useUnicode=true&characterEncoding=utf8&useSSL=false&useLegacyDatetimeCode=false&serverTimezone=${user.timezone}&TC_TMPFS=/testtmpfs:rw
  15. username: root
  16. password:
  17. hikari:
  18. poolName: Hikari
  19. auto-commit: false
  20. data-source-properties:
  21. cachePrepStmts: true
  22. prepStmtCacheSize: 250
  23. prepStmtCacheSqlLimit: 2048
  24. useServerPrepStmts: true
  25. jpa:
  26. database-platform: org.hibernate.dialect.MySQL8Dialect