From 5186bf6f2a786775818dc7017ef0bde32cc19201 Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期三, 02 七月 2025 15:42:18 +0800
Subject: [PATCH] 1

---
 rpc-server/src/main/resources/application.yml |   84 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 84 insertions(+), 0 deletions(-)

diff --git a/rpc-server/src/main/resources/application.yml b/rpc-server/src/main/resources/application.yml
new file mode 100644
index 0000000..cdbb7d8
--- /dev/null
+++ b/rpc-server/src/main/resources/application.yml
@@ -0,0 +1,84 @@
+spring:
+  application:
+    name: rpc-server
+  mvc:
+    static-path-pattern: /**
+  datasource:
+    driver-class-name: com.mysql.jdbc.Driver
+    url: jdbc:mysql://localhost:3306/jbly?useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai
+    username: root
+    password: xltys1995
+    type: com.alibaba.druid.pool.DruidDataSource
+    druid:
+      initial-size: 5
+      min-idle: 5
+      max-active: 20
+      max-wait: 30000
+      time-between-eviction-runs-millis: 60000
+      min-evictable-idle-time-millis: 300000
+      test-while-idle: true
+      test-on-borrow: true
+      test-on-return: false
+      remove-abandoned: true
+      remove-abandoned-timeout: 1800
+      #pool-prepared-statements: false
+      #max-pool-prepared-statement-per-connection-size: 20
+      filters: stat, wall
+      validation-query: SELECT 'x'
+      aop-patterns: com.zy.*.*.service.*
+      stat-view-servlet:
+        url-pattern: /druid/*
+        reset-enable: true
+        login-username: admin
+        login-password: admin
+        enabled: true
+  servlet:
+    multipart:
+      maxFileSize: 100MB
+      maxRequestSize: 100MB
+  jmx:
+    enabled: false
+
+  redis:
+    host: localhost
+    password: xltys1995
+    port: 6379
+    max: 30
+    min: 10
+    timeout: 5000
+    index: 3
+
+
+
+server:
+  port: 8082
+
+dubbo:
+  application:
+    name: rpc-server
+  registry:
+    address: zookeeper://127.0.0.1:2181
+    # protocol: zookeeper
+    # password: dreamtech
+    # username: zk_user
+  protocol:
+    name: dubbo
+    port: 20880
+  monitor:
+    protocol: registry
+
+
+mybatis-plus:
+  mapper-locations: classpath:mapper/*/*.xml
+  #  global-config:
+  #    field-strategy: 0
+  configuration:
+    #    log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
+    map-underscore-to-camel-case: true
+    cache-enabled: true
+  global-config:
+    :banner: false
+    db-config:
+      id-type: auto
+      logic-delete-value: 1
+      logic-not-delete-value: 0
\ No newline at end of file

--
Gitblit v1.9.1