123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124 |
- ############################# 访问路径、端口tomcat start #############################
- server:
- address:
- port: 8999
- servlet:
- context-path: /wcapi
- tomcat:
- max-threads: 1000
- min-spare-threads: 30
- uri-encoding: utf-8
- max-http-post-size: 2MB
-
-
-
- spring:
- application:
- name: creative-service
- http:
- encoding:
- charset: UTF-8
- enabled: true
- force: true
- jackson:
- date-format: yyy-MM-dd HH:mm:ss
- time-zone: GMT+8
- banner:
- charset: UTF-8
- location: classpath:banner.txt
-
- profiles:
-
- active: dev
-
- datasource:
- driver-class-name: com.mysql.jdbc.Driver
- platform: mysql
- type: com.alibaba.druid.pool.DruidDataSource
- url: jdbc:mysql://127.0.0.1:3306/creative_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
- # url: jdbc:mysql://172.19.175.249:3306/creative_db?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
- username: root
- password: 123456
- #password: SwNspCVZt7,S!6
- druid:
- filter:
- slf4j:
- enabled: true
- stat:
- log-slow-sql: true
- merge-sql: true
- slow-sql-millis: 3000
- wall:
- config:
- delete-allow: true
- drop-table-allow: false
- enabled: true
- filters: stat,wall,slf4j
- initial-size: 10
- max-active: 100
- max-pool-prepared-statement-per-connection-size: 20
- max-wait: 60000
- min-evictable-idle-time-millis: 300000
- min-idle: 10
- pool-prepared-statements: true
- stat-view-servlet:
- enabled: true
- login-password: druid123
- login-username: druid
- url-pattern: /druid/*
- test-on-borrow: false
- test-on-return: false
- test-while-idle: true
- time-between-eviction-runs-millis: 60000
- validation-query: SELECT 1
- validation-query-timeout: 60000
-
- servlet:
- multipart:
- enabled: true
- max-file-size: 5MB
- max-request-size: 2MB
-
-
-
- ############################ JWT start #############################
- spring-boot-plus:
- jwt:
- # token请求头名称
- token-name: Authorization
- # jwt密钥线上需要修改secret
- secret: f80b2eed0110a7ea5a94c35cbea1fe003d9bb450803473428b74862cceb697f8
- # 发行人
- issuer: xdf
- # 观众
- audience: web
- # 默认过期时间1小时,单位:秒
- expire-second: 7200
- # 是否刷新token
- refresh-token: true
- # 刷新token的时间间隔,默认10分钟,单位:秒
- refresh-token-countdown: 3600
- # redis校验jwt token是否存在,可选
- redis-check: true
- # true: 同一个账号只能是最后一次登陆token有效,false:同一个账号可多次登陆
- single-login: true
- # 盐值校验,如果不加自定义盐值,则使用secret校验
- salt-check: true
- ############################ JWT end ###############################
-
-
- ############################### mybatis-plus start #################################
- mybatis-plus:
- check-config-location: true
- configuration:
- map-underscore-to-camel-case: true
- global-config:
- db-config:
- id-type: id_worker
- logic-delete-value: 0
- logic-not-delete-value: 1
- mapper-locations: classpath*:mapper/*Mapper.xml
- type-aliases-package: com.xdf.creative.module.entity
- ################################ mybatis-plus end ##################################
-
|