From 7b2ed51bf4aed9b2169fa720740fbd6601854660 Mon Sep 17 00:00:00 2001 From: TsMask <340112800@qq.com> Date: Tue, 3 Dec 2024 17:05:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=88=9D=E5=A7=8B=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wfc-auth/src/main/resources/application.yml | 5 ++ .../src/main/resources/application.yml | 2 +- .../src/main/resources/application.yml | 56 +++++++++++++++++++ 3 files changed, 62 insertions(+), 1 deletion(-) create mode 100644 wfc-auth/src/main/resources/application.yml create mode 100644 wfc-modules/wfc-system/src/main/resources/application.yml diff --git a/wfc-auth/src/main/resources/application.yml b/wfc-auth/src/main/resources/application.yml new file mode 100644 index 0000000..4dfb21d --- /dev/null +++ b/wfc-auth/src/main/resources/application.yml @@ -0,0 +1,5 @@ +spring: + redis: + host: 192.168.2.248 + port: 6379 + password: diff --git a/wfc-modules/wfc-modules-user/src/main/resources/application.yml b/wfc-modules/wfc-modules-user/src/main/resources/application.yml index 42c41e5..8dec4a4 100644 --- a/wfc-modules/wfc-modules-user/src/main/resources/application.yml +++ b/wfc-modules/wfc-modules-user/src/main/resources/application.yml @@ -32,7 +32,7 @@ spring: # 主库数据源 master: driver-class-name: com.mysql.cj.jdbc.Driver - url: jdbc:mysql://192.168.2.248:3306/wfc-user-platform?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + url: jdbc:mysql://192.168.2.248:3306/wfc_user_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: root password: 123456 # 从库数据源 diff --git a/wfc-modules/wfc-system/src/main/resources/application.yml b/wfc-modules/wfc-system/src/main/resources/application.yml new file mode 100644 index 0000000..7460c4d --- /dev/null +++ b/wfc-modules/wfc-system/src/main/resources/application.yml @@ -0,0 +1,56 @@ +# spring配置 +spring: + redis: + host: 192.168.2.248 + port: 6379 + password: + datasource: + druid: + stat-view-servlet: + enabled: true + loginUsername: admin + loginPassword: 123456 + dynamic: + druid: + initial-size: 5 + min-idle: 5 + maxActive: 20 + maxWait: 60000 + connectTimeout: 30000 + socketTimeout: 60000 + timeBetweenEvictionRunsMillis: 60000 + minEvictableIdleTimeMillis: 300000 + validationQuery: SELECT 1 FROM DUAL + testWhileIdle: true + testOnBorrow: false + testOnReturn: false + poolPreparedStatements: true + maxPoolPreparedStatementPerConnectionSize: 20 + filters: stat,slf4j + connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000 + datasource: + # 主库数据源 + master: + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://192.168.2.248:3306/wfc_system_db?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: 123456 + # 从库数据源 + # slave: + # username: + # password: + # url: + # driver-class-name: + +# mybatis配置 +mybatis: + # 搜索指定包别名 + typeAliasesPackage: org.wfc.system + # 配置mapper的扫描,找到所有的mapper.xml映射文件 + mapperLocations: classpath:mapper/**/*.xml + +# swagger配置 +swagger: + title: 系统模块接口文档 + license: Powered By wfc + licenseUrl: https://wfc.vip \ No newline at end of file