application-dev.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. dwsurvey:
  2. # 用户模式切换,暂且保持默认 local
  3. site: 'local'
  4. web:
  5. # 后端文件存储目录,默认即在安装包同级目录下
  6. file-path: dwfile/dwsurvey/
  7. # 使用哪种部署模式,后期可能会去掉,可以先保持默认
  8. static-type: static
  9. # 站点访问地址,如果配置有域名则为域名地址
  10. site-url: http://localhost:8081
  11. # 资源访问地址,便于存储模式的切换,目前可以保持与site-url一样
  12. resource-url: http://localhost:8080
  13. # 站点信息配置,会出现在底部footer区
  14. info:
  15. # 站点名称
  16. site-name: 调问网
  17. # 站点名称,对应的URL地址
  18. site-url: http://www.diaowen.net
  19. # 站点备案号
  20. site-icp: 京ICP备13050030号-3
  21. # 站点联系人邮箱
  22. site-mail: service@diaowen.net
  23. # 站点联系人电话
  24. site-phone: 18888888888
  25. # 用于微信集成相关,目前社区版还没未启用。
  26. weixin:
  27. app-id: xxx
  28. app-secret: xxx
  29. server:
  30. token: xxx
  31. encodingAESKey:
  32. # 产品版本号信息,V5-代表最新的前后端分离版本
  33. version:
  34. info: DWSurvey OSS V5.2.6 Boot
  35. number: OSS V5.2.6
  36. built: 2022/03/17
  37. # 服务占用的端口号
  38. server:
  39. port: 8080
  40. # Spring相关配置
  41. spring:
  42. # json处理
  43. jackson:
  44. # 时间编码格式
  45. date-format: yyyy-MM-dd HH:mm:ss
  46. time-zone: GMT+8
  47. # spring web 配置
  48. web:
  49. resources:
  50. # 静态资源目录配置,注意这里引用了上面的 dwsurvey.web.file-path 配置
  51. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${dwsurvey.web.file-path}
  52. # 数据库配置
  53. datasource:
  54. #type: com.alibaba.druid.pool.DruidDataSource
  55. # 连接URL
  56. url: jdbc:mysql://localhost:3306/dwsurvey?useUnicode=true&characterEncoding=utf8
  57. # 连接账号
  58. username: root
  59. # 连接密码
  60. password: 123456,.
  61. type: com.alibaba.druid.pool.DruidDataSource
  62. druid:
  63. initial-size: 5
  64. min-idle: 5
  65. max-active: 50
  66. max-wait: 60000
  67. time-between-eviction-runs-millis: 60000
  68. remove-abandoned-timeout-millis: 300000
  69. validation-query: SELECT 1
  70. test-while-idle: true
  71. test-on-borrow: false
  72. test-on-return: false
  73. pool-prepared-statements: true
  74. max-pool-prepared-statement-per-connection-size: 20
  75. filters: stat,wall
  76. connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  77. stat-view-servlet:
  78. enabled: false
  79. reset-enable: false
  80. # 访问黑名单
  81. deny: 192.168.0.3
  82. # 白名单
  83. allow: 'localhost'
  84. url-pattern: /druid/*
  85. # 上生产环境一定要改账号与密码!
  86. login-username: admin
  87. login-password: dwsdb123456
  88. # jpa配置
  89. jpa:
  90. # 连接的数据库
  91. database: mysql
  92. generate-ddl: true
  93. show-sql: true
  94. hibernate:
  95. ddl-auto: update
  96. # naming:
  97. # implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl #指定jpa的自动表生成策略,驼峰自动映射为下划线格式
  98. properties:
  99. hibernate:
  100. #是否自动打印hql对应的sql语句
  101. show_sql: false
  102. #是否格式化sql语句
  103. format_sql: false
  104. #事务交由spring管理
  105. current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
  106. # enable_lazy_load_no_trans: true
  107. cache:
  108. use_second_level_cache: false
  109. use_query_cache: false
  110. # 日志配置
  111. logging:
  112. # 日志级别,具体大家可以根据实际情况来调整
  113. level:
  114. net:
  115. diaowen: INFO
  116. org:
  117. hibernate: ERROR
  118. apache: ERROR