application-test.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. server:
  2. port: 8080
  3. servlet:
  4. context-path: /jeecg-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. servlet:
  15. multipart:
  16. max-file-size: -1
  17. max-request-size: -1
  18. mail:
  19. host: smtp.163.com
  20. username: jeecgos@163.com
  21. password: ??
  22. properties:
  23. mail:
  24. smtp:
  25. auth: true
  26. starttls:
  27. enable: true
  28. required: true
  29. ## quartz定时任务,采用数据库方式
  30. quartz:
  31. job-store-type: jdbc
  32. #json 时间戳统一转换
  33. jackson:
  34. date-format: yyyy-MM-dd HH:mm:ss
  35. time-zone: GMT+8
  36. aop:
  37. proxy-target-class: true
  38. #配置freemarker
  39. freemarker:
  40. # 设置模板后缀名
  41. suffix: .ftl
  42. # 设置文档类型
  43. content-type: text/html
  44. # 设置页面编码格式
  45. charset: UTF-8
  46. # 设置页面缓存
  47. cache: false
  48. prefer-file-system-access: false
  49. # 设置ftl文件路径
  50. template-loader-path:
  51. - classpath:/templates
  52. # 设置静态文件路径,js,css等
  53. mvc:
  54. static-path-pattern: /**
  55. resource:
  56. static-locations: classpath:/static/,classpath:/public/
  57. autoconfigure:
  58. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  59. datasource:
  60. druid:
  61. stat-view-servlet:
  62. enabled: true
  63. loginUsername: admin
  64. loginPassword: 123456
  65. web-stat-filter:
  66. enabled: true
  67. dynamic:
  68. druid: # 全局druid参数,绝大部分值和默认保持一致。(现已支持的参数如下,不清楚含义不要乱设置)
  69. # 连接池的配置信息
  70. # 初始化大小,最小,最大
  71. connection-init-sql: set names utf8mb4
  72. initial-size: 5
  73. min-idle: 5
  74. maxActive: 20
  75. # 配置获取连接等待超时的时间
  76. maxWait: 60000
  77. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  78. timeBetweenEvictionRunsMillis: 60000
  79. # 配置一个连接在池中最小生存的时间,单位是毫秒
  80. minEvictableIdleTimeMillis: 300000
  81. validationQuery: SELECT 1 FROM DUAL
  82. testWhileIdle: true
  83. testOnBorrow: false
  84. testOnReturn: false
  85. # 打开PSCache,并且指定每个连接上PSCache的大小
  86. poolPreparedStatements: true
  87. maxPoolPreparedStatementPerConnectionSize: 20
  88. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  89. filters: stat,wall,slf4j
  90. # 通过connectProperties属性来打开mergeSql功能;慢SQL记录
  91. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  92. datasource:
  93. master:
  94. # url: jdbc:mysql://192.168.0.23:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  95. url: jdbc:mysql://39.106.184.70:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false
  96. username: hcst
  97. password: hcst2019
  98. driver-class-name: com.mysql.jdbc.Driver
  99. # 多数据源配置
  100. #multi-datasource1:
  101. #url: jdbc:mysql://localhost:3306/jeecg-boot2?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true
  102. #username: root
  103. #password: root
  104. #driver-class-name: com.mysql.jdbc.Driver
  105. #redis 配置
  106. redis:
  107. database: 0
  108. host: 127.0.0.1
  109. lettuce:
  110. pool:
  111. max-active: 8 #最大连接数据库连接数,设 0 为没有限制
  112. max-idle: 8 #最大等待连接中的数量,设 0 为没有限制
  113. max-wait: -1ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
  114. min-idle: 0 #最小等待连接中的数量,设 0 为没有限制
  115. shutdown-timeout: 100ms
  116. password: ''
  117. port: 6379
  118. #mybatis plus 设置
  119. mybatis-plus:
  120. mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml,classpath*:cn/com/ctop/kuaishou/modules/**/xml/*Mapper.xml,classpath*:cn/com/ctop/crawler/modules/**/xml/*Mapper.xml
  121. global-config:
  122. # 关闭MP3.0自带的banner
  123. banner: false
  124. db-config:
  125. #主键类型 0:"数据库ID自增",1:"该类型为未设置主键类型", 2:"用户输入ID",3:"全局唯一ID (数字类型唯一ID)", 4:"全局唯一ID UUID",5:"字符串全局唯一ID (idWorker 的字符串表示)";
  126. id-type: 4
  127. # 默认数据库表下划线命名
  128. table-underline: true
  129. configuration:
  130. # 这个配置会将执行的sql打印出来,在开发或测试的时候可以用
  131. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  132. #jeecg专用配置
  133. jeecg:
  134. path:
  135. #文件上传根目录 设置
  136. upload: D://upFiles
  137. #webapp文件路径
  138. webapp: D://webapp
  139. video-upload: D://upFiles//video//
  140. image-upload: D://upFiles//image//
  141. chrome-driver: D://chromedriver.exe
  142. csv-upload: D://upFiles//csv//