127 lines
3.2 KiB
YAML
127 lines
3.2 KiB
YAML
|
|
server:
|
|||
|
|
port: 8090
|
|||
|
|
servlet:
|
|||
|
|
context-path: /brain
|
|||
|
|
|
|||
|
|
spring:
|
|||
|
|
application:
|
|||
|
|
name: technological-brain
|
|||
|
|
mvc:
|
|||
|
|
pathmatch:
|
|||
|
|
matching-strategy: ant_path_matcher
|
|||
|
|
datasource:
|
|||
|
|
type: com.alibaba.druid.pool.DruidDataSource
|
|||
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|||
|
|
url: jdbc:mysql://47.110.148.47:13306/technological_brain?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
|
|||
|
|
username: root
|
|||
|
|
password: Cust123456
|
|||
|
|
druid:
|
|||
|
|
initial-size: 5
|
|||
|
|
min-idle: 5
|
|||
|
|
max-active: 20
|
|||
|
|
max-wait: 60000
|
|||
|
|
time-between-eviction-runs-millis: 60000
|
|||
|
|
min-evictable-idle-time-millis: 300000
|
|||
|
|
validation-query: SELECT 1
|
|||
|
|
test-while-idle: true
|
|||
|
|
test-on-borrow: false
|
|||
|
|
test-on-return: false
|
|||
|
|
pool-prepared-statements: true
|
|||
|
|
max-pool-prepared-statement-per-connection-size: 20
|
|||
|
|
filters: stat,wall
|
|||
|
|
connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|||
|
|
redis:
|
|||
|
|
host: 47.110.148.47
|
|||
|
|
port: 16379
|
|||
|
|
password: Cust123456
|
|||
|
|
database: 0
|
|||
|
|
timeout: 10s
|
|||
|
|
lettuce:
|
|||
|
|
pool:
|
|||
|
|
min-idle: 0
|
|||
|
|
max-idle: 8
|
|||
|
|
max-active: 8
|
|||
|
|
max-wait: -1ms
|
|||
|
|
|
|||
|
|
mybatis-plus:
|
|||
|
|
mapper-locations: classpath*:/mapper/**/*.xml
|
|||
|
|
type-aliases-package: com.CUST.brain.dao.domain
|
|||
|
|
configuration:
|
|||
|
|
map-underscore-to-camel-case: true
|
|||
|
|
cache-enabled: false
|
|||
|
|
global-config:
|
|||
|
|
db-config:
|
|||
|
|
id-type: ASSIGN_UUID
|
|||
|
|
logic-delete-value: 1
|
|||
|
|
logic-not-delete-value: 0
|
|||
|
|
|
|||
|
|
logging:
|
|||
|
|
level:
|
|||
|
|
com.CUST.brain: debug
|
|||
|
|
org.springframework: warn
|
|||
|
|
springfox.documentation: debug
|
|||
|
|
|
|||
|
|
springfox:
|
|||
|
|
documentation:
|
|||
|
|
swagger-ui:
|
|||
|
|
enabled: true
|
|||
|
|
swagger:
|
|||
|
|
v2:
|
|||
|
|
enabled: true
|
|||
|
|
|
|||
|
|
swagger:
|
|||
|
|
enable: true
|
|||
|
|
title: 科技大脑平台接口文档
|
|||
|
|
description: 科技大脑展示平台服务接口文档
|
|||
|
|
version: 1.0.0
|
|||
|
|
base-package: com.CUST.brain.web.controller
|
|||
|
|
|
|||
|
|
knife4j:
|
|||
|
|
enable: true
|
|||
|
|
setting:
|
|||
|
|
language: zh-CN
|
|||
|
|
enable-swagger-models: true
|
|||
|
|
enable-document-manage: true
|
|||
|
|
swagger-model-name: 实体类列表
|
|||
|
|
enable-version: false
|
|||
|
|
enable-reload-cache-parameter: false
|
|||
|
|
enable-after-script: true
|
|||
|
|
enable-filter-multipart-api-method-type: POST
|
|||
|
|
enable-filter-multipart-apis: false
|
|||
|
|
enable-request-cache: true
|
|||
|
|
enable-host: false
|
|||
|
|
enable-host-text:
|
|||
|
|
enable-home-custom: false
|
|||
|
|
home-custom-path: classpath:markdown/home.md
|
|||
|
|
enable-search: true
|
|||
|
|
enable-footer: false
|
|||
|
|
enable-footer-custom: false
|
|||
|
|
footer-custom-content:
|
|||
|
|
enable-dynamic-parameter: false
|
|||
|
|
enable-debug: true
|
|||
|
|
enable-open-api: false
|
|||
|
|
enable-group: true
|
|||
|
|
cors: false
|
|||
|
|
production: false
|
|||
|
|
basic:
|
|||
|
|
enable: false
|
|||
|
|
username: test
|
|||
|
|
password: 123456
|
|||
|
|
|
|||
|
|
# JWT配置
|
|||
|
|
jwt:
|
|||
|
|
# JWT加解密使用的密钥(使用 Base64 编码的字符串)
|
|||
|
|
secret: DTFlDDXXcyzxCBvrOkD7+OXpO8oEMTsjEpOIHP9Uh9DBzczp6YfJaa7jhh718XzUsU4TAkNJ9eBhEaUNF/mgew==
|
|||
|
|
# JWT的超期限时间(单位:秒)
|
|||
|
|
expiration: 86400
|
|||
|
|
# JWT负载中拿到开头
|
|||
|
|
tokenHeader: Authorization
|
|||
|
|
# JWT负载中拿到开头
|
|||
|
|
tokenHead: Bearer
|
|||
|
|
|
|||
|
|
oss:
|
|||
|
|
endpoint: https://oss-cn-hangzhou.aliyuncs.com
|
|||
|
|
access-key-id: LTAI5tENiNhfm8fJiyfU9QxB
|
|||
|
|
access-key-secret: wmjKuJT970AbSQbzlkPnFaHWWwX5Nx
|
|||
|
|
bucket-name: tecbrain
|
|||
|
|
domain: https://tecbrain.oss-cn-hangzhou.aliyuncs.com
|