application-dev.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. # 环境配置
  2. server:
  3. port: 9033
  4. servlet:
  5. context-path: /api/ounuo
  6. # condition
  7. spel:
  8. scheduling: false # 定时任务是否执行
  9. multiSource: false # 是否多数据源配置
  10. #spring:
  11. # # database
  12. # datasource:
  13. ## connection-init-sql: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci # SqlServer, Oracle 无需设置类型
  14. # driver-class-name: com.mysql.cj.jdbc.Driver
  15. # username: ounuo_user
  16. # password: OUNUO123!
  17. # url: jdbc:mysql://ounuo.raresoft.net:33306/TASK
  18. # jpa:
  19. # hibernate:
  20. # ddl-auto: none
  21. # show-sql: true
  22. # database: oracle
  23. # hikari:
  24. # pool-name: DateHikariCP
  25. # minimum-idle: 0
  26. # maximum-pool-size: 10
  27. # idle-timeout: 30000
  28. # max-lifetime: 120000 # 小于数据库超时大于业务执行返回时间[hikari默认30m, mysql默认10m]
  29. # connection-timeout: 30000 # 数据库连接超时时间,默认30秒,即30000
  30. spring:
  31. datasource:
  32. url: jdbc:mysql://47.110.74.198:3306/ounuo?useSSL=false&serverTimezone=Asia/Shanghai
  33. username: root
  34. password: cp-root@2022++
  35. hikari:
  36. # 检测连接是否有效的 SQL(每次从连接池获取连接时执行)
  37. connection-test-query: SELECT 1
  38. # 或使用更标准的 JDBC4 isValid()(推荐)
  39. # connection-test-query 不需要设置,Hikari 默认用 isValid()
  40. # 连接最大存活时间(必须 < MySQL 的 wait_timeout,建议 30 分钟)
  41. max-lifetime: 1800000 # 30分钟
  42. # 空闲连接超时(小于 max-lifetime)
  43. idle-timeout: 600000 # 10分钟
  44. # 从连接池获取连接的超时时间
  45. connection-timeout: 30000 # 30秒
  46. # 最小空闲连接数
  47. minimum-idle: 5
  48. # # 主库
  49. # primary:
  50. # username: root
  51. # password: mu123
  52. # jdbc-url: jdbc:mysql://127.0.0.1:3306/mjava?serverTimezone=Asia/Shanghai&useUnicode=yes&characterEncoding=UTF-8&useSSL=true
  53. # # 从库
  54. # slave:
  55. # username: root
  56. # password: mu123
  57. # jdbc-url: jdbc:mysql://127.0.0.1:3306/mjava_slave?serverTimezone=Asia/Shanghai&useUnicode=yes&characterEncoding=UTF-8&useSSL=true
  58. # jpa:
  59. # hibernate:
  60. # ddl-auto: none # JPA对表没有任何操作
  61. # show-sql: true
  62. # database: ORACLE
  63. # database-platform: org.hibernate.dialect.Oracle12cDialect
  64. # filepath
  65. file:
  66. path:
  67. file: /Users/malk/server/_Tool/var/mjava/tmp/file/
  68. image: /Users/malk/server/_Tool/var/mjava/tmp/image/
  69. tmp: /Users/malk/server/_Tool/var/mjava/tmp/
  70. source:
  71. fonts: /Users/malk/server/_Tool/fonts/simsun.ttc
  72. logging:
  73. file:
  74. path: /Users/malk/server/_Tool/var/mjava/log
  75. level:
  76. com.malk.*: debug
  77. # dingtalk 钉钉
  78. dingtalk:
  79. agentId: 4115325431
  80. appKey: dinghhozexm92tupobfo
  81. appSecret: -zYNwc4j9hssiP0mTNbSe0D9v9ejh4OIaHnx_EhVZWJbwnatvgtNiSFPIwAg9AGb
  82. corpId: ding2af339267563330e4ac5d6980864d335
  83. aesKey:
  84. token:
  85. operator: 332051151139376769 # OA管理员账号:鲜明阳 [0开头需要转一下字符串]
  86. # aliwork 宜搭
  87. aliwork:
  88. appType: APP_VCTRP6227CC8368NDOID
  89. systemToken: 5H9662C1X8XJLFFCE841M5VBEBQ73DM5IBPULPI3
  90. # MyBatisplus配置
  91. mybatis-plus:
  92. mapper-locations: classpath:mapper/*.xml # mapper.xml存放路径
  93. type-aliases-package: com.malk.tuosi.entity # 实体类包路径
  94. configuration:
  95. # 开启下划线转驼峰(默认就是true,但明确配置一下)
  96. map-underscore-to-camel-case: true
  97. #定时器
  98. enable:
  99. scheduling: true
  100. teambition:
  101. AppID: 6874ba11d22c73565fd8af9d
  102. AppSecret: 4JBgPwpctG27SuZrVVeCrXoiVCjie9ID
  103. TenantId: 61a8c26719c3b5ffe9c4cffb
  104. OperatorId: 616fb6f78ad4104a10515809 # 公共账号, 需要有操作权限 [牧语]