server:
servlet:
context-path: /api
tomcat:
max-threads: 1000
min-spare-threads: 30
uri-encoding: UTF-8
spring:
application:
name: spring-boot-plus
banner:
charset: UTF-8
location: classpath:config/banner.txt
datasource:
driver-class-name: com.mysql.jdbc.Driver
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 FROM DUAL
type: com.alibaba.druid.pool.DruidDataSource
http:
encoding:
charset: UTF-8
enabled: true
force: true
jackson:
date-format: yyy-MM-dd HH:mm:ss
time-zone: GMT+8
profiles:
active: '@profileActive@'
redis:
jedis:
pool:
max-active: 2000
max-wait: -1ms
min-idle: 8
max-idle: 200
timeout: 10s
lettuce:
pool:
max-active: 200
max-idle: 8
max-wait: 10s
min-idle: 2
shutdown-timeout: 3s
rabbitmq:
host: 39.106.37.56
port: 5672
username: admin
password: admin123
template:
# 启用重试机制,重试间隔时间为2s,最多重试3次
retry:
enabled: true
initial-interval: 2s
max-attempts: 3
queue: spring-boot-plus-queue
# 定义默认的交换机名称
exchange: spring-boot-plus-exchange
# 定义默认的路由key
routing-key: spring-boot-plus-key
kafka:
bootstrap-servers: 203.104.37.38:9092
producer:
retries: 0
batch-size: 4096
buffer-memory: 40960
consumer:
group-id: spring-boot-plus-group
template:
default-topic: spring-boot-plus-topic
spring-boot-plus:
jwt:
header: token
secret: 666666
issuer: spring-boot-plus
subject: spring-boot-plus-jwt
audience: web
expire-minutes: 2
interceptor:
jwt:
exclude:
path: /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/login,/verificationCode,/doc/**,/error/**,/docs,/test/**
permission:
exclude:
path: /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/adminLogin,/sysLogin,/login.html,/verificationCode,/doc/**,/error/**,/docs
token-timeout:
exclude:
path: /swagger-resources/**,/api-docs/**,/v2/api-docs/**,/docs
mybatis-plus:
check-config-location: true
configuration:
map-underscore-to-camel-case: true
global-config:
db-config:
field-strategy: not_empty
id-type: id_worker
logic-delete-value: 0
logic-not-delete-value: 1
mapper-locations: classpath*:mapper/**/*Mapper.xml
swagger:
base:
package: io.geekidea.springbootplus
contact:
email: geekidea@qq.com
name: geekidea
url: ''
description: ''
title: spring-boot-plus
url: ''
version: 1.0
spring:
boot:
admin:
client:
url: 'http://localhost:8888'
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: ALWAYS
info:
project-groupId: '@project.groupId@'
project-artifactId: '@project.artifactId@'
project-name: '@project.name@'
project-finalName: '@project.build.finalName@'
project-author: ${swagger.contact.name}
project-description: '@project.description@'
project-sourceEncoding: '@project.build.sourceEncoding@'
project-spring-boot-version: '@spring-boot.version@'
project-mybatis-plus-version: '@mybatis-plus-boot-starter.version@'
project-version: '@project.version@'
本地环境相关配置,如果公共配置中有相关配置,则会覆盖
springbootplus:
isEnableAnsi: true
login:
token:
valid:
time:
minute: 3600
server:
port: 8888
servlet:
context-path: /
spring:
datasource:
url: jdbc:mysql://localhost:3306/spring_boot_plus?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
username: root
password: root
redis:
database: 0
host: localhost
password:
port: 6379