application-template.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. server:
  2. port: 9004
  3. tomcat:
  4. accesslog:
  5. enabled: true
  6. buffered: true
  7. directory: /var/logs
  8. file-date-format: -yyyy-MM-dd
  9. pattern: common
  10. prefix: tomcat-audio
  11. rename-on-rotate: false
  12. request-attributes-enabled: false
  13. rotate: true
  14. suffix: .log
  15. netty:
  16. server:
  17. port: 8090
  18. eureka:
  19. client:
  20. serviceUrl:
  21. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  22. instance:
  23. lease-renewal-interval-in-seconds: 5
  24. spring:
  25. application:
  26. name: audio-analysis-server
  27. datasource:
  28. name: test
  29. url: jdbc:mysql://47.114.1.200:3306/mec_test?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  30. username: mec_dev
  31. password: dayaDataOnline@2019
  32. # 使用druid数据源
  33. type: com.alibaba.druid.pool.DruidDataSource
  34. driver-class-name: com.mysql.cj.jdbc.Driver
  35. filters: stat
  36. maxActive: 20
  37. initialSize: 1
  38. maxWait: 60000
  39. minIdle: 1
  40. timeBetweenEvictionRunsMillis: 60000
  41. minEvictableIdleTimeMillis: 300000
  42. validationQuery: select 'x'
  43. testWhileIdle: true
  44. testOnBorrow: false
  45. testOnReturn: false
  46. poolPreparedStatements: true
  47. maxOpenPreparedStatements: 20
  48. redis:
  49. host: 47.114.1.200
  50. port: 6379
  51. password: dyym
  52. database: 1
  53. #连接超时时间(毫秒)
  54. timeout: 10000
  55. jedis:
  56. pool:
  57. #连接池最大连接数(使用负值表示没有限制)
  58. max-active: 20
  59. #连接池最大阻塞等待时间(使用负值表示没有限制)
  60. max-wait: 10000
  61. #连接池中的最大空闲连接
  62. max-idle: 10
  63. #连接池中的最小空闲连接
  64. min-idle: 5
  65. mybatis:
  66. mapperLocations: classpath:config/mybatis/*.xml
  67. swagger:
  68. base-package: com.yonge.audo.controller
  69. ##认证
  70. security:
  71. oauth2:
  72. client:
  73. client-id: app
  74. client-secret: app
  75. resource:
  76. token-info-uri: http://localhost:8001/oauth/check_token
  77. #spring boot admin 相关配置
  78. management:
  79. endpoints:
  80. web:
  81. exposure:
  82. include: "*"
  83. endpoint:
  84. health:
  85. show-details: ALWAYS
  86. ribbon:
  87. ReadTimeout: 60000
  88. ConnectTimeout: 60000
  89. message:
  90. debugMode: true
  91. ##支付流水隐藏
  92. payment:
  93. hiddenMode: false
  94. #隐藏的支付方式
  95. channel: YQPAY
  96. eseal:
  97. tsign:
  98. projectid: 4438776254
  99. projectSecret: a94cf63d6361084d232f345d71321691
  100. apisUrl: http://smlitsm.tsign.cn:8080/tgmonitor/rest/app!getAPIInfo2
  101. push:
  102. jiguang:
  103. reqURL: https://api.jpush.cn/v3/push
  104. appKey:
  105. student: 0e7422e1d6e73637e678716a
  106. teacher: 7e0282ca92c12c8c45a93bb3
  107. system: 496fc1007dea59b1b4252d2b
  108. masterSecret:
  109. student: c2361016604eab56ab2db2ac
  110. teacher: d47430e2f4755ef5dc050ac5
  111. system: a5e51e9cdb25417463afbf7a
  112. apns_production: false