123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- # 开发环境配置
- server:
- # 服务器的HTTP端口,默认为8080
- port: 8088
- servlet:
- # 应用的访问路径
- context-path: /api
- tomcat:
- # tomcat的URI编码
- uri-encoding: UTF-8
- # tomcat最大线程数,默认为200
- max-threads: 800
- # Tomcat启动初始化的线程数,默认值25
- min-spare-threads: 30
- # 日志配置
- logging:
- level:
- com.hz: debug
- org.springframework: warn
- # Spring配置
- spring:
- datasource:
- type: com.zaxxer.hikari.HikariDataSource
- driver-class-name: com.mysql.cj.jdbc.Driver
- # url: jdbc:mysql://172.16.121.243:3306/db_omes_dashboard?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&tinyInt1isBit=false
- url: jdbc:mysql://192.168.0.40:3306/netty_demo?useUnicode=true&characterEncoding=UTF8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&tinyInt1isBit=false
- username: root
- # password: Qx123456
- password: Qx123456
- # 资源信息
- messages:
- # 国际化资源文件路径
- basename: i18n/messages
- profiles:
- active: ${PRO_ENV:local}
- # 文件上传
- servlet:
- multipart:
- # 单个文件大小
- max-file-size: 200MB
- # 设置总上传的文件大小
- max-request-size: 200MB
- # redis 配置
- redis:
- # 地址
- host: 192.168.0.41
- # host: localhost
- # 端口,默认为6379
- port: 6379
- # 数据库索引
- database: 0
- # 密码 123456
- password:
- # password: QkNtEheRF*RqJvM
- # 连接超时时间
- timeout: 10s
- lettuce:
- pool:
- # 连接池中的最小空闲连接
- min-idle: 0
- # 连接池中的最大空闲连接
- max-idle: 8
- # 连接池的最大数据库连接数
- max-active: 8
- # #连接池最大阻塞等待时间(使用负值表示没有限制)
- max-wait: -1ms
- # token配置
- token:
- # 令牌自定义标识
- header: Authorization
- # 令牌密钥
- secret: abcdefghijklmnopqrstuvwxyz
- # 令牌有效期(默认30分钟)
- expireTime: 1000
-
- # MyBatis配置
- mybatis-plus:
- mapper-locations: mapper/*.xml
- typeAliasesPackage: com.**.entity
- global-config:
- banner: false
- configuration:
- log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
- # PageHelper分页插件
- pagehelper:
- helperDialect: mysql
- supportMethodsArguments: true
- params: count=countSql
- # Swagger配置
- swagger:
- # 是否开启swagger
- enabled: true
- # 请求前缀
- # pathMapping: /dev-api
- pathMapping:
- # 防止XSS攻击
- xss:
- # 过滤开关
- enabled: true
- # 排除链接(多个用逗号分隔)
- excludes: /system/notice
- # 匹配链接
- urlPatterns: /system/*,/monitor/*,/tool/*
- ok:
- http:
- connect-timeout: 60
- read-timeout: 60
- write-timeout: 60
- # 连接池中整体的空闲连接的最大数量
- max-idle-connections: 200
- # 连接空闲时间最多为 300 秒
- keep-alive-duration: 300
- # 作为客户端请求的服务端地址
- netty:
- tcp:
- server:
- # 作为客户端请求的服务端地址
- host: localhost
- # 作为客户端请求的服务端端口
- port: 9000
- client:
- # 作为服务端开放给客户端的端口
- port: 9000
|