application.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. spring:
  2. cache:
  3. guava:
  4. spec: expireAfterWrite=30s
  5. datasource:
  6. driver-class-name: com.mysql.jdbc.Driver
  7. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  8. username: mooctest
  9. password: secr3t!
  10. # Keep the connection alive if idle for a long time (needed in production)
  11. testWhileIdle: true
  12. validationQuery: SELECT 1
  13. # Show or not log for each sql query
  14. jpa:
  15. show-sql: true
  16. # Hibernate ddl auto (create, create-drop, update)
  17. hibernate:
  18. ddl-auto: validate
  19. #hbm2ddl.auto: update
  20. # Naming strategy
  21. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  22. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  23. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  24. redis:
  25. host: 114.55.91.27
  26. pool: 6379
  27. password: '#03#05@ise@mooctest'
  28. jedis:
  29. pool:
  30. max-active: 8
  31. max-idle: 8
  32. max-wait: -1
  33. min-idle: 0
  34. database: 3
  35. feature-switch:
  36. default:
  37. role: generalUser