111 lines
3.1 KiB
YAML
111 lines
3.1 KiB
YAML
# 应用服务 WEB 访问端口
|
||
server:
|
||
port: 8007
|
||
servlet:
|
||
context-path: /sysManageMicroservice
|
||
encoding:
|
||
charset: UTF-8
|
||
force: true
|
||
enabled: true
|
||
compression:
|
||
enabled: true
|
||
min-response-size: 1024
|
||
mime-types:
|
||
- image/png
|
||
- image/jpeg
|
||
- image/jpg
|
||
- text/html
|
||
- application/javascript
|
||
- text/css
|
||
- application/octet-stream
|
||
- application/json
|
||
|
||
spring:
|
||
jmx:
|
||
enabled: false
|
||
# 当前环境名称(注意:不可设置为 test 它是单元测试专用的名称)
|
||
profiles:
|
||
active: prod
|
||
application:
|
||
name: sysManageMicroservice
|
||
mvc:
|
||
pathmatch:
|
||
matching-strategy: ant_path_matcher
|
||
datasource:
|
||
type: com.alibaba.druid.pool.DruidDataSource
|
||
driver-class-name: com.mysql.cj.jdbc.Driver # mysql驱动包
|
||
url: jdbc:mysql://120.46.194.248:13306/jinhaiqimengdb?useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=CONVERT_TO_NULL&allowMultiQueries=true # 数据库名称
|
||
username: sysManageMicroservice_user
|
||
password: pEqzVsA$whvE
|
||
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 FROM DUAL
|
||
test-while-idle: true
|
||
test-on-borrow: false
|
||
test-on-return: false
|
||
# 打开PSCache,并且指定每个连接上PSCache的大小
|
||
pool-prepared-statements: true
|
||
max-pool-prepared-statement-per-connection-size: 20
|
||
# 通过connectProperties属性来打开mergeSql功能;慢SQL记录
|
||
connect-properties:
|
||
druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
||
# 合并多个DruidDataSource的监控数据
|
||
use-global-data-source-stat: true
|
||
filters: stat,wall
|
||
|
||
# redis:
|
||
# lettuce:
|
||
# pool:
|
||
# max-active: 200
|
||
# max-idle: 10
|
||
# min-idle: -1
|
||
# host: 120.46.171.171
|
||
# port: 6379
|
||
# password: bcd4@g2wp*PZv#&U
|
||
# timeout: 1000
|
||
# database: 1
|
||
|
||
cloud:
|
||
sentinel:
|
||
transport:
|
||
# 控制台地址
|
||
dashboard: 127.0.0.1:8718
|
||
eager: true
|
||
# 声明式服务
|
||
feign:
|
||
# 开启okhttp客户端
|
||
okhttp:
|
||
enabled: true
|
||
# 请求与响应的压缩以提高通信效率
|
||
compression:
|
||
request:
|
||
enabled: true
|
||
min-request-size: 2048
|
||
mime-types: text/xml,application/xml,application/json
|
||
response:
|
||
enabled: true
|
||
|
||
httpclient:
|
||
enabled: false
|
||
|
||
|
||
logging:
|
||
config: classpath:logback-spring.xml
|
||
|
||
#mybatisPlus
|
||
mybatis-plus:
|
||
mapper-locations: classpath:mapping/*.xml #注意:一定要对应mapper映射xml文件的所在路径
|
||
type-aliases-package: com.jinhaiqimeng.sysManageMicroservice.web.entity,com.jinhaiqimeng.orgMicroservice.web.dto # 注意:对应实体类的路径
|
||
configuration:
|
||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||
|