application.yml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. # Tomcat
  2. server:
  3. tomcat:
  4. uri-encoding: UTF-8
  5. max-threads: 1000
  6. min-spare-threads: 30
  7. basedir: /tmp/tomcat
  8. port: 8687
  9. servlet:
  10. context-path: /qyh
  11. # mysql
  12. spring:
  13. # 环境 dev|test|prod
  14. profiles:
  15. active: dev
  16. jackson:
  17. date-format: yyyy-MM-dd HH:mm:ss
  18. time-zone: GMT+8
  19. servlet:
  20. multipart:
  21. max-file-size: 100MB
  22. max-request-size: 100MB
  23. enabled: true
  24. location: /data/upload_tmp
  25. freemarker:
  26. suffix: .html
  27. request-context-attribute: request
  28. mail:
  29. # 邮件服务地址
  30. host: smtp.qq.com
  31. # 端口
  32. port: 587
  33. # 编码格式
  34. default-encoding: utf-8
  35. # 用户名
  36. username: 2917584408@qq.com
  37. # 授权码
  38. password: qmlmofbtnncwdcia
  39. # 其它参数
  40. properties:
  41. mail:
  42. smtp:
  43. # 如果是用 SSL 方式,需要配置如下属性
  44. starttls:
  45. enable: true
  46. required: true
  47. devtools:
  48. restart:
  49. enabled: true #设置开启热部署
  50. freemarker:
  51. cache: false #页面不加载缓存,修改即时生效
  52. renren:
  53. cluster: false #集群配置 true集群环境 false单机环境,还需打开pom.xml里的spring-session-data-redis注释
  54. globalSessionTimeout: 3600 #单机环境,session过期时间为60分钟
  55. redis:
  56. open: true # 是否开启redis缓存 true开启 false关闭
  57. #mybatis
  58. mybatis-plus:
  59. mapper-locations: classpath*:/mapper/**/*.xml
  60. #实体扫描,多个package用逗号或者分号分隔
  61. typeAliasesPackage: io.renren.modules.*.entity
  62. global-config:
  63. #数据库相关配置
  64. db-config:
  65. #主键类型 AUTO:"数据库ID自增", INPUT:"用户输入ID", ID_WORKER:"全局唯一ID (数字类型唯一ID)", UUID:"全局唯一ID UUID";
  66. id-type: AUTO
  67. #字段策略 IGNORED:"忽略判断",NOT_NULL:"非 NULL 判断"),NOT_EMPTY:"非空判断"
  68. field-strategy: NOT_NULL
  69. #驼峰下划线转换
  70. column-underline: true
  71. logic-delete-value: -1
  72. logic-not-delete-value: 0
  73. banner: false
  74. #原生配置
  75. configuration:
  76. map-underscore-to-camel-case: true
  77. cache-enabled: false
  78. call-setters-on-nulls: true
  79. jdbc-type-for-null: 'null'
  80. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  81. wx:
  82. miniapp:
  83. configs:
  84. - appid: wxdb9bd0f7aa4c40a3
  85. secret: f87ae5e8ebd2b3090af86dc94f61b825
  86. token: #微信小程序消息服务器配置的token
  87. aesKey: #微信小程序消息服务器配置的EncodingAESKey
  88. msgDataFormat: JSON
  89. # -- 订阅消息参数
  90. tokenUrl: https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid={APPID}&secret={APPSECRET}
  91. sendUrl: https://api.weixin.qq.com/cgi-bin/message/subscribe/send?access_token=