application-dev.properties 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. oms.env=dev
  2. ####### Database properties(Configure according to the the environment) #######
  3. #spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
  4. #spring.datasource.core.driver-class-name=org.postgresql.Driver
  5. #spring.datasource.core.jdbc-url=jdbc:postgresql://localhost:5432/km?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  6. #spring.datasource.core.username=postgres
  7. #spring.datasource.core.password=P3x0LG8jzyHRX59l
  8. ## DM???????
  9. #spring.datasource.remote.hibernate.properties.hibernate.dialect=org.hibernate.dialect.DmDialect
  10. #spring.datasource.core.driver-class-name=dm.jdbc.driver.DmDriver
  11. #spring.datasource.core.jdbc-url=jdbc:dm://127.0.0.1:5236?schema=km&useUnicode=true&characterEncoding=utf8&useSSL=true&autoReconnect=true&reWriteBatchedInserts=true
  12. #spring.datasource.core.username=SYSDBA
  13. #spring.datasource.core.password=SYSDBA123
  14. ## postgres
  15. spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
  16. spring.datasource.core.driver-class-name=org.postgresql.Driver
  17. spring.datasource.core.jdbc-url=jdbc:postgresql://localhost:5432/taais?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  18. spring.datasource.core.username=postgres
  19. spring.datasource.core.password=P3x0LG8jzyHRX59l
  20. ## MySQL???????
  21. #spring.datasource.remote.hibernate.properties.hibernate.dialect=tech.powerjob.server.persistence.config.dialect.PowerJobPGDialect
  22. #spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
  23. #spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/km?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true
  24. #spring.datasource.core.username=root
  25. #spring.datasource.core.password=Root@369
  26. spring.datasource.core.maximum-pool-size=20
  27. spring.datasource.core.minimum-idle=5
  28. # ????
  29. # ?????
  30. spring.boot.admin.client.enabled=true
  31. # ?? Spring Boot Admin Server ??
  32. spring.boot.admin.client.url:http://localhost:9090/admin
  33. spring.boot.admin.client.instance.service-host-type=IP
  34. spring.boot.admin.client.username=km
  35. spring.boot.admin.client.password=123456
  36. ####### MongoDB properties(Non-core configuration properties) #######
  37. ####### delete mongodb config to disable mongodb #######
  38. oms.mongodb.enable=false
  39. #spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
  40. ####### Email properties(Non-core configuration properties) #######
  41. ####### Delete the following code to disable the mail #######
  42. #spring.mail.host=smtp.163.com
  43. #spring.mail.username=zqq@163.com
  44. #spring.mail.password=GOFZPNARMVKCGONV
  45. #spring.mail.properties.mail.smtp.auth=true
  46. #spring.mail.properties.mail.smtp.starttls.enable=true
  47. #spring.mail.properties.mail.smtp.starttls.required=true
  48. ####### DingTalk properties(Non-core configuration properties) #######
  49. ####### Delete the following code to disable the DingTalk #######
  50. #oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
  51. #oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
  52. #oms.alarm.ding.agent-id=847044348
  53. ####### Resource cleaning properties #######
  54. oms.instanceinfo.retention=1
  55. oms.container.retention.local=1
  56. oms.container.retention.remote=-1
  57. ####### Cache properties #######
  58. oms.instance.metadata.cache.size=1024
  59. ####### Threshold in precise fetching server(0~100). 100 means full detection of server, in which #######
  60. ####### split-brain could be avoided while performance overhead would increase. #######
  61. oms.accurate.select.server.percentage=50