bug
lrj
2024-10-25 a6470c4de7867f5478197c390c158ad730ff5bae
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
server:
  port: 19080
  tomcat:
    uri-encoding: UTF-8
  servlet:
    context-path: /scheme
    compression: true
 
spring:
 
  servlet:
    multipart:
      max-file-size: 20MB
      #(这里是限制的文件大小)
      max-request-size: 20MB
  mvc:
 
    static-path-pattern: /resources/**
  resources:
    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/, classpath:/public/,file:files:.//res/
  #Jackson配置
  jackson:
    time-zone: GMT+8
    date-format: yyyy/MM/dd HH:mm:ss
 
  datasource:
    url: jdbc:mysql://140.143.152.226:3306/case?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8&rewriteBatchedStatements=true
    username: root
    password: Y$c$l@1202!aa
    driver-class-name: com.mysql.cj.jdbc.Driver
    # 使用druid数据源
    type: com.alibaba.druid.pool.DruidDataSource
    druid:
      db-type: mysql
      initial-size: 5
      min-idle: 5
      max-active: 20
      # 连接等待超时时间
      max-wait: 30000
      # 配置检测可以关闭的空闲连接间隔时间
      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-open-prepared-statements: 20
      max-pool-prepared-statement-per-connection-size: 20
      # 配置监控统计拦截的filters, 去掉后监控界面sql无法统计, 'wall'用于防火墙
      filters: stat,wall
      # Spring监控AOP切入点,如x.y.z.service.*,配置多个英文逗号分隔
      aop-patterns: com.ycyl.dingdang
      # WebStatFilter配置
      web-stat-filter:
        enabled: true
        # 添加过滤规则
        url-pattern: /*
        # 忽略过滤的格式
        exclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
 
        # StatViewServlet配置
      stat-view-servlet:
        enabled: true
        # 访问路径为/druid时,跳转到StatViewServlet
        url-pattern: /druid/*
        # 是否能够重置数据
        reset-enable: true
        # 需要账号密码才能访问控制台
        login-username: ycl
        login-password: ycl@2020
          #           IP白名单
        allow:
      #           IP黑名单
      #         deny: 192.168.1.218
      # 配置StatFilter
      filter:
        stat:
          log-slow-sql: true
          enabled: true
 
  data:
    mongodb:
      host: 140.143.152.226
      port: 27017
      database: dingdang_test
      username: dba
      password: ycl!2020
 
    elasticsearch:
      host: 140.143.152.226
      port: 19200
      scheme: http
      connectTimeOut: 30
      socketTimeOut: 30
      connectionRequestTimeOut: 30
      maxConnectNum: 100
      maxConnectPerRoute: 100
      user: elastic
      password: ycl@2020
  cache:
    jcache:
      config: classpath:ehcache.xml
 
 
      # uri: mongodb://dingdang:dingdang@118.178.58.241:27017/dingdang
#  mybatis 配置
mybatis-plus:
  global-config:
    db-config:
      id-type: auto
      field-strategy: NOT_EMPTY
      db-type: MYSQL
  configuration:
    call-setters-on-nulls: true
    cache-enabled: true
  logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
 
mybatis:
  typeHandlersPackage: com.ycyl.dingdang.config.datasource
 
#pagehelper mybatis的分页插件配置
pagehelper:
  helperDialect: mysql  #分页使用的方言
  reasonable: true  #3.3.0版本可用 - 分页参数合理化,默认false禁用,启用合理化时如果pageNum<1会查询第一页,如果pageNum>pages会查询最后一页,禁用合理化时,如果pageNum<1或pageNum>pages会返回空数据
  supportMethodsArguments: true
  params: count=countSql
 
dingdang:
  web-url: https://www.9village.cn/dingdang_test/api/v1