duhuizhe
2024-05-15 aa2c3d4deba76ade0958ff3ced88396e226a4964
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
swagger:
  base-package: com.nuvole.four
spring:
#    servlet:
#    #允许传输文件大小配置
#    multipart:
#      max-file-size: 100Mb
#      max-request-size: 200Mb
  application:
    name: service-four-payment
#  redis:
#    jedis:
#      pool:
#        max-active: 2000
#        max-wait: -1
#        max-idle: 10
#        min-idle: 0
#    timeout: 30000
    #druid 链接池
  rabbitmq:
#    publisher-confirms: true
    publisher-returns: true
    listener:
      direct:
        acknowledge-mode: manual
      simple:
        acknowledge-mode: manual
    port: 5672
    username: super
    password: Jmy2019.
    virtual-host: ecosphere
    host: 116.198.40.76
  datasource:
    druid:
      driver-class-name: com.mysql.jdbc.Driver
      url: jdbc:mysql://116.198.40.76:3306/ecosphere_shop_basics?characterEncoding=utf8&autoReconnect=true&useSSL=false
      username: root
      password: Bjjmy_2020
      min-idle: 5
      initial-size: 5
      async-init: true
      async-close-connection-enable: true
      max-active: 150
      max-wait: 60000
      time-between-eviction-runs-millis: 60000
      min-evictable-idle-time-millis: 30000
      validation-query: SELECT 1 FROM DUAL
      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,log4j2
      connection-properties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
      web-stat-filter:
        enabled: true
        url-pattern: /*
        exclusions: "*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"
        session-stat-enable: true
        profile-enable: true
      stat-view-servlet:
        enabled: false
        url-pattern: /druid/*
        login-username: stqAdmin
        login-password: m2UdVE40efM6A8FsCznj31JBt
        reset-enable: false
        allow: 127.0.0.1
      # deny: 黑名单
      filter:
        stat:
          enabled: true
          log-slow-sql: true
          slow-sql-millis: 3000
          merge-sql: true
          db-type: mysql
        wall:
          enabled: true
          db-type: mysql
          config:
            alter-table-allow: false
            truncate-allow: false
            drop-table-allow: false
            none-base-statement-allow: false
            update-where-alay-true-check: true
            select-into-outfile-allow: false
            metadata-allow: true
          log-violation: true
          throw-exception: true
#    driver-class-name: com.mysql.jdbc.Driver
#    url: jdbc:mysql://116.198.40.76:3306/ecosphere_shop_basics?characterEncoding=utf8&autoReconnect=true&useSSL=false
#    username: root
#    password: Bjjmy_2020
  #资源文件映射
  banner:
    location: banner.txt
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8
  web:
    resources:
      static-locations: classpath:/static/,classpath:/public/,file:${file.upPath},file:${file.sysPath},file:${file.poster.path}
#mybaits映射配置
mybatis:
  mapper-locations: classpath*:mapping/**/*Mapper.xml
  type-aliases-package: com.nuvole.four.domain
  configuration:
    map-underscore-to-camel-case: true
pagehelper:
  helper-dialect: mysql
  reasonable: false
  support-methods-s'y'sarguments: true
  params: count=countSql
#日志配置
logging:
  pattern:
    console: "%d{yyyy/MM/dd-HH:mm:ss} [%thread] %-5level %logger- %msg%n"
    file: "%d{yyyy/MM/dd-HH:mm} [%thread] %-5level %logger- %msg%n"
  level:
    root: info
    com.nuvole.four: debug
feign:
  hystrix:
    enabled: true
hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 32000
ribbon:
  ConnectTimeout: 10000
  ReadTimeout: 30000
server:
  tomcat:
    uri-encoding: UTF-8
    max-threads: 1000
    max-connections: 1000
    basedir: tomcat
  servlet:
    encoding:
      charset: UTF-8
      enabled: true
      force: true
 
tl:
  could:
    fee: 0
# 会员日配置
memberFlash:
  #每周几开启 5 为周五,7为周日
  startWeekDay: 5