From 0631a9fb075cf4225cb5e29ae34cfb5fd21c0f2f Mon Sep 17 00:00:00 2001 From: erdanergou Date: Mon, 24 Jul 2023 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BA=AB=E4=BB=BD=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application-prod.yml | 99 +++++++++++++++++++++++++ 1 file changed, 99 insertions(+) create mode 100644 src/main/resources/application-prod.yml diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml new file mode 100644 index 00000000..93f145fc --- /dev/null +++ b/src/main/resources/application-prod.yml @@ -0,0 +1,99 @@ +#开启健康检查、审计、统计和监控,即可通过访问/actuator/beans等查看状态 +management: + endpoints: + web: + exposure: + include: beans,health +spring: + mobile: + sitepreference: + enabled:true + + servlet: + multipart: + enabled: true + max-file-size: 100MB # 单个文件上传的最大上限 + max-request-size: 100MB # 一次请求总大小上限 + ##数据库设置 + datasource: + dynamic: + datasource: + master: + username: depository + password: NhE47edekBHxhjYk + url: jdbc:mysql://127.0.0.1:3306/depository?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + initialSize: 5 + minIdle: 5 + maxActive: 10 + maxWait: 60000 + timeBetweenEvictionRunsMillis: 60000 + minEvictableIdleTimeMillis: 300000 + validationQuery: SELECT 1 FROM DUAL + useGlobalDataSourceStat: true + server: + port: 9090 + testWhileIdle: true + testOnReturn: false + testOnBorrow: false + poolPreparedStatements: true + maxPoolPreparedStatementPerConnectionSize: 20 + #配置监控统计拦截的filters,去掉后监控界面sql将无法统计,'wall'用于防火墙 + filters: stat, wall, log4j + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + #超时回收机制 + removeAbandoned: true + removeAbandonedTimeout: 1800 + logAbandoned: true + hr_new: + username: hr_new + password: AnknKiXiXaxNrw78 + url: jdbc:mysql://127.0.0.1:3306/hr_new?serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8 + driver-class-name: com.mysql.cj.jdbc.Driver + type: com.alibaba.druid.pool.DruidDataSource + + banner: + location: banner.txt + thymeleaf: + cache: false + mode: HTML + mvc: + hiddenmethod: + filter: + enabled: true + view: + prefix: /templates/ + suffix: .html + static-path-pattern: /static/** + redis: + port: 6379 + host: 127.0.0.1 + database: 5 + jedis: + pool: + min-idle: 10 + max-idle: 20 + max-wait: -1ms + max-active: 200 + timeout: 2000ms + + +redisPool: + port: 6379 + host: 127.0.0.1 + dbs: 5,14,15 + password: + +server: +mybatis: + type-aliases-package: com.dreamchaser.depository_manage.entity + configuration: + log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl + log-prefix: mapper. + +mybatis-plus: + mapper-locations: classpath*:*_mapper/*Mapper.xml + +file: + uploadPath: D:/upLoad \ No newline at end of file