zhanghl
2025-05-12 3b2efe252b0ff8114c873b86e264c4d8add9361b
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
server:
  port: 9205
spring:
  application:
    # 应用名称
    name: aps-core
  cloud:
    nacos:
      discovery:
        # 服务注册地址
        server-addr: 192.168.50.160:8848
        namespace: aafcd57a-d0f7-43e3-a77d-1dc85aec1f0e
        metadata:
          local: int
      config:
        # 配置中心地址
        server-addr: 192.168.50.160:8848
        # 配置文件格式
        file-extension: yml
        namespace: aafcd57a-d0f7-43e3-a77d-1dc85aec1f0e
        # 共享配置
        shared-configs:
          - application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
  # spring配置
  data:
    redis:
      host: 192.168.50.160
      port: 6379
      password:
  datasource:
    druid:
      stat-view-servlet:
        enabled: true
        loginUsername: ruoyi
        loginPassword: 123456
    dynamic:
      druid:
        initial-size: 5
        min-idle: 5
        maxActive: 20
        maxWait: 60000
        connectTimeout: 30000
        socketTimeout: 60000
        timeBetweenEvictionRunsMillis: 60000
        minEvictableIdleTimeMillis: 300000
        testWhileIdle: true
        testOnBorrow: false
        testOnReturn: false
        poolPreparedStatements: true
        maxPoolPreparedStatementPerConnectionSize: 20
        filters: stat,slf4j
      datasource:
        # 主库数据源
        master:
          driver-class-name: org.postgresql.Driver
          url: jdbc:postgresql://192.168.50.160:5432/postgres?stringtype=unspecified
          username: postgres
          password: pwd@aps
          # 从库数据源
          # slave:
          # username:
          # password:
          # url:
          # driver-class-name:
 
## mybatis配置
#mybatis:
#  # 搜索指定包别名
#  typeAliasesPackage: com.aps.core
#  # 配置mapper的扫描,找到所有的mapper.xml映射文件
#  mapperLocations: classpath:mapper/**/*.xml
# mp配置
mybatis-plus:
  mapper-locations:  classpath:mapper/**/*.xml
  type-aliases-package: com.aps.core
  global-config:
    db-config:
      id-type: ASSIGN_ID
      logic-delete-value: 1
      logic-not-delete-value: 0
  configuration:
    map-underscore-to-camel-case: true
    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
 
 
# springdoc配置
springdoc:
  gatewayUrl: http://localhost:8080/${spring.application.name}
  api-docs:
    # 是否开启接口文档
    enabled: true
  info:
    # 标题
    title: '系统模块接口文档'
    # 描述
    description: '系统模块接口描述'