application-test.yml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. server:
  2. port: 18053
  3. servlet:
  4. context-path: /happy-boot
  5. compression:
  6. enabled: true
  7. mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
  8. management:
  9. endpoints:
  10. web:
  11. exposure:
  12. include: metrics,httptrace
  13. spring:
  14. # mail:
  15. # host: smtp.163.com
  16. # username: jeecgos@163.com
  17. # password: ??
  18. # properties:
  19. # mail:
  20. # smtp:
  21. # auth: true
  22. # starttls:
  23. # enable: true
  24. # required: true
  25. ##文件上传大小限制
  26. servlet:
  27. multipart:
  28. max-file-size: 100MB
  29. max-request-size: 100MB
  30. ## quartz定时任务,采用数据库方式
  31. quartz:
  32. job-store-type: jdbc
  33. #json 时间戳统一转换
  34. jackson:
  35. date-format: yyyy-MM-dd HH:mm:ss
  36. time-zone: GMT+8
  37. aop:
  38. proxy-target-class: true
  39. #配置freemarker
  40. freemarker:
  41. # 设置模板后缀名
  42. suffix: .ftl
  43. # 设置文档类型
  44. content-type: text/html
  45. # 设置页面编码格式
  46. charset: UTF-8
  47. # 设置页面缓存
  48. cache: false
  49. prefer-file-system-access: false
  50. # 设置ftl文件路径
  51. template-loader-path:
  52. - classpath:/templates
  53. # 设置静态文件路径,js,css等
  54. mvc:
  55. static-path-pattern: /**
  56. resource:
  57. static-locations: classpath:/static/,classpath:/public/
  58. autoconfigure:
  59. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  60. datasource:
  61. druid:
  62. stat-view-servlet:
  63. loginUsername: admin
  64. loginPassword: 123456
  65. dynamic:
  66. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  67. # 连接池的配置信息
  68. # 初始化大小,最小,最大
  69. initial-size: 5
  70. min-idle: 5
  71. maxActive: 20
  72. # 配置获取连接等待超时的时间
  73. maxWait: 60000
  74. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  75. timeBetweenEvictionRunsMillis: 60000
  76. # 配置一个连接在池中最小生存的时间,单位是毫秒
  77. minEvictableIdleTimeMillis: 300000
  78. validationQuery: SELECT 1 FROM DUAL
  79. testWhileIdle: true
  80. testOnBorrow: false
  81. testOnReturn: false
  82. # 打开PSCache,并且指定每个连接上PSCache的大小
  83. poolPreparedStatements: true
  84. maxPoolPreparedStatementPerConnectionSize: 20
  85. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  86. filters: stat,wall,slf4j
  87. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  88. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  89. datasource:
  90. master:
  91. url: jdbc:mysql://127.0.0.1:3306/hppay?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  92. username: root
  93. password: 5k_5gCHL
  94. driver-class-name: com.mysql.jdbc.Driver
  95. # 多数据源配置
  96. #multi-datasource1:
  97. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  98. #username: root
  99. #password: root
  100. #driver-class-name: com.mysql.jdbc.Driver
  101. #redis 配置
  102. redis:
  103. database: 6
  104. host: 127.0.0.1
  105. lettuce:
  106. pool:
  107. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  108. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  109. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  110. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  111. shutdown-timeout: 100ms
  112. password: 'zX$l5c8QNAQH$l25HK'
  113. port: 18369
  114. #mybatis plus 设置
  115. mybatis-plus:
  116. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
  117. #jeecg专用配置
  118. jeecg :
  119. path :
  120. #文件上传根目录 设置
  121. upload: /opt/jeecg-boot/upload
  122. #webapp文件路径
  123. webapp: /opt/jeecg-boot/webapp
  124. oss :
  125. aliyunUrl: https://hpjobtest.oss-cn-shanghai.aliyuncs.com
  126. aliyunDownloadUrl: https://hpjobtest.oss-cn-shanghai.aliyuncs.com
  127. oSSUrl: https://hpjobtest.oss-cn-shanghai.aliyuncs.com/static
  128. endpoint: oss-cn-shanghai.aliyuncs.com
  129. accessKeyId: LTAIdrFEg3iDHDzd
  130. accessKeySecret: 72NuLZN12fVHLstI3iQdn13XGKSrpx
  131. bucketName: hpjobtest
  132. sms :
  133. #用户在253云通讯平台上申请的API账号 例如:N6000001
  134. account: N3241700
  135. #用户在253云通讯平台上申请的API账号对应的API密钥 例如:123456
  136. password: O04MCJiBLc6b64
  137. smsUrl: http://smssh1.253.com/msg/send/json
  138. #253云通讯平台上配置签名
  139. smsSign: '%e3%80%90%e5%bc%80%e5%bf%83%e5%b7%a5%e4%bd%9c%e3%80%91'
  140. c_port :
  141. path : https://kf.hap-job.com/happyjob
  142. #logging:
  143. # level:
  144. # org.jeecg.modules.system.mapper : debug