application-prod.yaml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. server:
  2. port: 9080
  3. servlet:
  4. context-path: /pp
  5. error:
  6. include-exception: true
  7. spring:
  8. servlet:
  9. #文件上传配置
  10. multipart:
  11. enabled: true
  12. max-file-size: 50MB
  13. max-request-size: 100MB
  14. datasource:
  15. username: root
  16. password: Dypg@1996
  17. url: jdbc:mysql://localhost:1230/productivity-platform?autoReconnect=true&useUnicode=true&zeroDateTimeBehavior=CONVERT_TO_NULL&useSSL=false&serverTimezone=Asia/Shanghai&allowMultiQueries=true&characterEncoding=UTF-8&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true
  18. driver-class-name: com.mysql.cj.jdbc.Driver
  19. type: com.alibaba.druid.pool.DruidDataSource
  20. jackson:
  21. date-format: yyyy-MM-dd HH:mm:ss
  22. mvc:
  23. static-path-pattern: /**
  24. mybatis-plus:
  25. mapper-locations: classpath*:mapper/**/*Mapper.xml
  26. type-aliases-package: com.dayou.entity
  27. #debug
  28. configuration:
  29. #关闭日志:org.apache.ibatis.logging.nologging.NoLoggingImpl 开启日志:org.apache.ibatis.logging.stdout.StdOutImpl
  30. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  31. # mybatis映射到实体的驼峰命名
  32. mapUnderscoreToCamelCase: true
  33. global-config:
  34. db-config:
  35. id-type: auto
  36. logic-delete-field: deleteStatus
  37. logic-delete-value: 1
  38. logic-not-delete-value: 0
  39. #分页插件
  40. pagehelper:
  41. helperDialect: mysql
  42. reasonable: true
  43. supportMethodsArguments: true
  44. pageSizeZero: false
  45. params: count=countSql
  46. ############## Sa-Token 配置 (文档: https://sa-token.cc) ##############
  47. sa-token:
  48. # token 名称(同时也是 cookie 名称)
  49. token-name: token
  50. # token 有效期(单位:秒) 默认30天,-1 代表永久有效
  51. timeout: 86400
  52. # token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
  53. active-timeout: -1
  54. # 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
  55. is-concurrent: true
  56. # 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
  57. is-share: true
  58. # token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
  59. token-style: random-64
  60. # 是否输出操作日志
  61. is-log: true
  62. # oa系统的api url
  63. oa-api-url: localhost:8088/api/
  64. file-net:
  65. # 基础配置
  66. base-dir: /opt/dfs/productivity-platform/
  67. max-file-size: 102400
  68. # 资产业务配置
  69. asset-template-report-path: assets\templates\report\
  70. asset-template-calculate-path: assets\templates\calculate\
  71. asset-output-report-path: assets\output\report\
  72. asset-output-calculate-path: assets\output\calculate\
  73. house-guaranty-path: house/guaranty
  74. house-guaranty-template-path: house/guaranty/temp/
  75. posyspath: /root/pageoffice