| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198 |
- server:
- port: 9100
- servlet:
- context-path: /api
- undertow:
- accesslog:
- enabled: true
- max-http-post-size: -1
- buffer-size: 1024
- direct-buffers: true
- threads:
- io: 16
- worker: 256
- no-request-timeout: 3m
- tio:
- websocket:
- server:
- port: 9002
- #心跳检测在业务层面自定义进行 ms 毫秒级 按照最后一次接受数据包算 20s
- heartbeat-timeout: 20000
- #是否支持集群,集群开启需要redis
- cluster:
- enabled: false
- # Sa-Token配置
- sa-token:
- # token名称 (同时也是cookie名称)
- token-name: Authorization
- # token有效期,单位s 默认30天, -1代表永不过期
- timeout: -1
- # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 一天
- activity-timeout: -1
- # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
- is-concurrent: true
- # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
- is-share: true
- # token风格
- token-style: simple-uuid
- # 是否输出操作日志
- is-log: false
- # 是否从cookie读取token
- is-read-cookie: false
- # 是否打开续签
- auto-renew: true
- logging:
- level:
- springfox: error
- com.nb: warn
- config: classpath:logback-spring.xml
- file:
- path: ./logs
- logback:
- rollingpolicy:
- max-file-size: 10MB
- charset:
- console: UTF-8
- mybatis-plus:
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- checkConfigLocation: false
- global-config:
- banner: false
- enableSqlRunner: false
- dbConfig:
- idType: ASSIGN_ID
- logic-delete-field: isDelete
- logic-not-delete-value: 0
- logic-delete-value: 1
- configuration:
- log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
- default-enum-type-handler: com.baomidou.mybatisplus.core.handlers.MybatisEnumTypeHandler
- type-aliases-package: com.nb.bus.entity
- captcha:
- enable: true
- width: 140
- height: 38
- #验证码过期时间 5min
- expire: 300
- management:
- endpoints:
- web:
- exposure:
- include: heapdump,metrics
- # 项目相关配置
- app:
- # 项目名称
- name: nb
- # 实例演示开关
- demoEnabled: false
- # 获取ip地址开关
- addressEnabled: true
- uploadType: minio
- # 上传目录
- uploadDir: D:/${app.name}-files
- # 缓存前缀
- cachePrefix: ${app.name}:dev
- # MinIO相关配置
- minio:
- uploadEndpoint: localhost
- uploadPort: 9000
- uploadSecure: false
- downEndpoint: localhost
- downPort: 9000
- downSecure: false
- accessKey: minioadmin
- secretKey: minioadmin
- bucketName: ${app.name}bucket
- # 数据源配置
- spring:
- servlet:
- multipart:
- max-file-size: 1024MB
- max-request-size: 1024MB
- enabled: true
- application:
- name: nb
- profiles:
- active: dev
- jackson:
- time-zone: GMT+8
- flyway:
- enabled: true
- encoding: UTF-8
- # 迁移脚本位置
- locations:
- - classpath:db/migration
- sql-migration-prefix: V
- sql-migration-separator: _
- sql-migration-suffixes: .sql
- validate-on-migrate: true
- baseline-on-migrate: true
- datasource:
- type: com.alibaba.druid.pool.DruidDataSource
- driverClassName: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://localhost:3306/nbnetpump?createDatabaseIfNotExist=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&autoReconnect=true&useInformationSchema=true
- username: root
- password: root
- druid:
- # 初始连接数
- initialSize: 5
- # 最小连接池数量
- minIdle: 10
- # 最大连接池数量
- maxActive: 20
- # 配置获取连接等待超时的时间
- maxWait: 60000
- # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
- timeBetweenEvictionRunsMillis: 60000
- # 配置一个连接在池中最小生存的时间,单位是毫秒
- minEvictableIdleTimeMillis: 300000
- # 配置一个连接在池中最大生存的时间,单位是毫秒
- maxEvictableIdleTimeMillis: 900000
- # 配置检测连接是否有效
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- # redis 配置
- redis:
- # 地址
- host: localhost
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 6
- # 密码
- password: 6E6985E1F7CB40F24A\.
- # 连接超时时间
- timeout: 30s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 16
- # 连接池中的最大空闲连接
- max-idle: 16
- # 连接池的最大数据库连接数
- max-active: 16
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- request:
- check:
- enable: false
- # 开启请求验签
- sign: true
- # 请求与服务器时间间隔不得超过 10分钟
- expire-interval: 600
- # 请求不可重复接收时间 10分钟
- repeat-interval: 600
- hospital:
- code: 123
- name: 中央监护管理系统
|