| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119 |
- dwsurvey:
- # 用户模式切换,暂且保持默认 local
- site: 'local'
- web:
- # 后端文件存储目录,默认即在安装包同级目录下
- file-path: dwfile/dwsurvey/
- # 使用哪种部署模式,后期可能会去掉,可以先保持默认
- static-type: static
- # 站点访问地址,如果配置有域名则为域名地址
- site-url: http://localhost:8081
- # 资源访问地址,便于存储模式的切换,目前可以保持与site-url一样
- resource-url: http://localhost:8080
- # 站点信息配置,会出现在底部footer区
- info:
- # 站点名称
- site-name: 调问网
- # 站点名称,对应的URL地址
- site-url: http://www.diaowen.net
- # 站点备案号
- site-icp: 京ICP备13050030号-3
- # 站点联系人邮箱
- site-mail: service@diaowen.net
- # 站点联系人电话
- site-phone: 18888888888
- # 用于微信集成相关,目前社区版还没未启用。
- weixin:
- app-id: xxx
- app-secret: xxx
- server:
- token: xxx
- encodingAESKey:
- # 产品版本号信息,V5-代表最新的前后端分离版本
- version:
- info: DWSurvey OSS V5.2.6 Boot
- number: OSS V5.2.6
- built: 2022/03/17
- # 服务占用的端口号
- server:
- port: 8080
- # Spring相关配置
- spring:
- # json处理
- jackson:
- # 时间编码格式
- date-format: yyyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- # spring web 配置
- web:
- resources:
- # 静态资源目录配置,注意这里引用了上面的 dwsurvey.web.file-path 配置
- static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${dwsurvey.web.file-path}
- # 数据库配置
- datasource:
- #type: com.alibaba.druid.pool.DruidDataSource
- # 连接URL
- url: jdbc:mysql://localhost:3306/dwsurvey?useUnicode=true&characterEncoding=utf8
- # 连接账号
- username: root
- # 连接密码
- password: 123456,.
- type: com.alibaba.druid.pool.DruidDataSource
- druid:
- initial-size: 5
- min-idle: 5
- max-active: 50
- max-wait: 60000
- time-between-eviction-runs-millis: 60000
- remove-abandoned-timeout-millis: 300000
- validation-query: SELECT 1
- test-while-idle: true
- test-on-borrow: false
- test-on-return: false
- pool-prepared-statements: true
- max-pool-prepared-statement-per-connection-size: 20
- filters: stat,wall
- connection-properties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
- stat-view-servlet:
- enabled: false
- reset-enable: false
- # 访问黑名单
- deny: 192.168.0.3
- # 白名单
- allow: 'localhost'
- url-pattern: /druid/*
- # 上生产环境一定要改账号与密码!
- login-username: admin
- login-password: dwsdb123456
- # jpa配置
- jpa:
- # 连接的数据库
- database: mysql
- generate-ddl: true
- show-sql: true
- hibernate:
- ddl-auto: update
- # naming:
- # implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl #指定jpa的自动表生成策略,驼峰自动映射为下划线格式
- properties:
- hibernate:
- #是否自动打印hql对应的sql语句
- show_sql: false
- #是否格式化sql语句
- format_sql: false
- #事务交由spring管理
- current_session_context_class: org.springframework.orm.hibernate5.SpringSessionContext
- # enable_lazy_load_no_trans: true
- cache:
- use_second_level_cache: false
- use_query_cache: false
- # 日志配置
- logging:
- # 日志级别,具体大家可以根据实际情况来调整
- level:
- net:
- diaowen: INFO
- org:
- hibernate: ERROR
- apache: ERROR
|