application-test.yml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. dwsurvey:
  2. site: 'local'
  3. web:
  4. file-path: diaowen/file/
  5. static-type: static
  6. site-url: http://localhost:8080
  7. resource-url: http://localhost:8080
  8. # site-url: http://ent82.surveyform.cn
  9. info:
  10. site-name: 调问网
  11. site-url: http://www.diaowen.net
  12. site-icp: 京ICP备13050030号-3
  13. site-mail: service@diaowen.net
  14. site-phone: 18888888888
  15. weixin:
  16. app-id: xxx
  17. app-secret: xxx
  18. server:
  19. token: xxx
  20. encodingAESKey:
  21. version:
  22. info: DWSurvey OSS V5.0 Boot
  23. number: OSS V5.0
  24. built: 2021/11/21
  25. server:
  26. port: 8080
  27. spring:
  28. jackson:
  29. date-format: yyyy-MM-dd HH:mm:ss
  30. time-zone: GMT+8
  31. web:
  32. resources:
  33. static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${dwsurvey.web.file-path}
  34. # static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/public/,file:${dwsurvey.web.file-path}
  35. datasource:
  36. #type: com.alibaba.druid.pool.DruidDataSource
  37. url: jdbc:mysql://localhost:3306/dwsurvey_21test?useUnicode=true&characterEncoding=utf8
  38. username: root
  39. password: 123456,.
  40. type: com.alibaba.druid.pool.DruidDataSource
  41. druid:
  42. initial-size: 5
  43. min-idle: 5
  44. max-active: 100
  45. max-wait: 60000
  46. time-between-eviction-runs-millis: 60000
  47. remove-abandoned-timeout-millis: 300000
  48. validation-query: SELECT 1
  49. test-while-idle: true
  50. test-on-borrow: false
  51. test-on-return: false
  52. pool-prepared-statements: true
  53. max-pool-prepared-statement-per-connection-size: 20
  54. filters: stat,wall
  55. connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  56. stat-view-servlet:
  57. enabled: false
  58. reset-enable: false
  59. # 访问黑名单
  60. deny: 192.168.0.3
  61. # 白名单
  62. allow: 'localhost'
  63. url-pattern: /druid/*
  64. # 上生产环境一定要改账号与密码!
  65. login-username: admin
  66. login-password: dwsdb123456
  67. jpa:
  68. database: mysql
  69. generate-ddl: true
  70. show-sql: true
  71. hibernate:
  72. ddl-auto: update
  73. # naming:
  74. # implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl #指定jpa的自动表生成策略,驼峰自动映射为下划线格式
  75. properties:
  76. hibernate:
  77. #是否自动打印hql对应的sql语句
  78. show_sql: false
  79. #是否格式化sql语句
  80. format_sql: false
  81. #事务交由spring管理
  82. current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
  83. # enable_lazy_load_no_trans: true
  84. cache:
  85. use_second_level_cache: false
  86. use_query_cache: false
  87. logging:
  88. level:
  89. net:
  90. diaowen: INFO
  91. org:
  92. hibernate: ERROR
  93. apache: ERROR