application-dev.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. server:
  2. # 端口号
  3. port: 5000
  4. security:
  5. oauth2:
  6. client:
  7. client-id: platform
  8. client-secret: platform
  9. scope: server
  10. resource:
  11. loadBalanced: true
  12. token-info-uri: http://localhost:5000/oauth/check_token
  13. freemarker:
  14. allow-request-override: false
  15. # 开发过程建议关闭缓存
  16. cache: true
  17. check-template-location: false
  18. charset: UTF-8
  19. content-type: text/html; charset=utf-8
  20. expose-request-attributes: false
  21. expose-session-attributes: false
  22. expose-spring-macro-helpers: false
  23. request-context-attribute:
  24. # 默认后缀就是.ftl
  25. suffix: .ftl
  26. template-loader-path: classPath:/templates/
  27. spring:
  28. application:
  29. name: platform-rest
  30. redis:
  31. password:
  32. port: 6379
  33. host: localhost
  34. database: 11
  35. jpa:
  36. properties:
  37. hibernate:
  38. temp:
  39. use_jdbc_metadata_defaults: false
  40. dialect: org.hibernate.dialect.MySQLDialect
  41. datasource:
  42. druid:
  43. stat-view-servlet:
  44. login-password: platform8888
  45. login-username: root
  46. servlet:
  47. multipart:
  48. maxFileSize: "100MB"
  49. maxRequestSize: "1000MB"
  50. mail:
  51. host: smtp.exmail.qq.com #发送邮件服务器
  52. username: chenyh@tuzhiall.com #发送邮件的邮箱地址
  53. password: Chenyuehu521 #客户端授权码,不是邮箱密码,这个在qq邮箱设置里面自动生成的
  54. properties.mail.smtp.port: 465 #端口号465或587
  55. from: chenyh@tuzhiall.com # 发送邮件的地址,和上面username一致
  56. properties.mail.smtp.starttls.enable: true
  57. properties.mail.smtp.starttls.required: true
  58. properties.mail.smtp.ssl.enable: true
  59. default-encoding: utf-8
  60. # 直接放行URL
  61. ignore:
  62. urls:
  63. - /upms/logs/**
  64. - /operate/**
  65. - /users/**
  66. - /users/work/**
  67. - /druid/**
  68. - app-versions/**
  69. - /files/**
  70. - /mobile/token
  71. - /verify/**
  72. - /test/test/**
  73. - /static/**
  74. - /service/**
  75. - /ignores/**
  76. upload:
  77. root-dir: D://data//xian
  78. platform:
  79. slf4j:
  80. data: D://xajg
  81. ## 阿里云短信配置
  82. aliyun:
  83. message:
  84. regionId: cn-hangzhou
  85. accessKeyId: u4dWx6Jxp4UJNqPj
  86. accessSecret: b3DNDU3Y0rRA6Wa2mRV1WNbDKh7Jhs
  87. remove:
  88. capitalType: 5
  89. companyId: 5e902722d762f008b01b9ee1