server: port: 8091 tomcat: uri-encoding: UTF-8 accept-count: 1000 threads: max: 800 min-spare: 100 spring: profiles: active: druid # 文件上传 servlet: multipart: max-file-size: 10MB max-request-size: 20MB # 服务模块 devtools: restart: enabled: true task: scheduling: pool: size: 8 # redis 配置 redis: host: localhost port: 6379 database: 0 password: timeout: 10s lettuce: pool: min-idle: 100 max-idle: 300 max-active: 300 max-wait: -1ms # 数据源配置 datasource: type: com.alibaba.druid.pool.DruidDataSource driverClassName: com.mysql.cj.jdbc.Driver url: jdbc:mysql://127.0.0.1:3306/mix?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: mix password: PsRwRm5nGbtS22Xp 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 webStatFilter: enabled: true statViewServlet: enabled: true allow: url-pattern: /druid/* login-username: Greysparrow login-password: 123456 filter: stat: enabled: true log-slow-sql: true slow-sql-millis: 1000 merge-sql: true wall: config: multi-statement-allow: false # 日志配置 logging: level: com.ruoyi: debug org.springframework: warn # token配置 token: header: Authorization secret: abcdefghijklmnopqrstuvwxyz expireTime: 30 # MyBatis配置 mybatis: typeAliasesPackage: com.nq.pojo mapperLocations: classpath*:mapper/*Mapper.xml configLocation: classpath:mybatis/mybatis-config.xml # PageHelper分页插件 pagehelper: helperDialect: mysql supportMethodsArguments: true params: count=countSql wallet: isHotWallet: false # Swagger配置 swagger: enabled: true pathMapping: /dev-api # 防止XSS攻击 xss: enabled: true excludes: /system/notice urlPatterns: /system/*,/monitor/*,/tool/*