application.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. spring:
  2. profiles:
  3. active: dev
  4. cache:
  5. guava:
  6. spec: expireAfterWrite=30s
  7. datasource:
  8. driver-class-name: com.mysql.jdbc.Driver
  9. # url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  10. # username: mooctest
  11. # password: secr3t!
  12. # Keep the connection alive if idle for a long time (needed in production)
  13. testWhileIdle: true
  14. validationQuery: SELECT 1
  15. # Show or not log for each sql query
  16. jpa:
  17. show-sql: true
  18. # Hibernate ddl auto (create, create-drop, update)
  19. hibernate:
  20. ddl-auto: validate
  21. #hbm2ddl.auto: update
  22. # Naming strategy
  23. naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
  24. # The SQL dialect makes Hibernate generate better SQL for the chosen database
  25. properties.hibernate.dialect: org.hibernate.dialect.MySQL5Dialect
  26. redis:
  27. host: 114.55.91.27
  28. pool: 6379
  29. password: '#03#05@ise@mooctest'
  30. jedis:
  31. pool:
  32. max-active: 8
  33. max-idle: 8
  34. max-wait: -1
  35. min-idle: 0
  36. # database: 6
  37. servlet:
  38. multipart:
  39. enabled: true
  40. max-file-size: 100MB
  41. max-request-size: 100MB
  42. feature-switch:
  43. default:
  44. role: generalUser
  45. oss:
  46. accessKeyId: IvS323TIcWUT57MG
  47. accessKeySecret: dYml7rvT8stQkoSjMYlfRTxNj9dEsI
  48. endPoint: oss-cn-hangzhou.aliyuncs.com
  49. bucketName: mooctest-crowd-service
  50. #user:
  51. # service:
  52. # baseUrl: http://111.231.143.6:8081
  53. ---
  54. spring:
  55. profiles: dev
  56. datasource:
  57. url: jdbc:mysql://101.37.175.111:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  58. username: mooctest
  59. password: secr3t!
  60. redis:
  61. database: 6
  62. user:
  63. service:
  64. baseUrl: http://111.231.143.6:8081
  65. ---
  66. spring:
  67. profiles: pre
  68. datasource:
  69. url: jdbc:mysql://129.211.26.227:3306/crowd-test-service?useSSL=false&useUnicode=yes&characterEncoding=UTF-8
  70. username: root
  71. password: crowd
  72. redis:
  73. database: 7
  74. user:
  75. service:
  76. baseUrl: http://111.231.143.6:8081