From 032b3569caebe59c9f992f8b5f2a649c1d7ee8eb Mon Sep 17 00:00:00 2001 From: tony <846249920@qq.com> Date: Thu, 22 Apr 2021 14:42:21 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=85=8D=E7=BD=AE):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=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 --- ruoyi-admin/src/main/resources/application-druid.yml | 6 +++--- ruoyi-admin/src/main/resources/application.yml | 6 +++--- ruoyi-ui/.env.production | 3 +++ 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ruoyi-admin/src/main/resources/application-druid.yml b/ruoyi-admin/src/main/resources/application-druid.yml index 9e2e9cc..7bf966d 100644 --- a/ruoyi-admin/src/main/resources/application-druid.yml +++ b/ruoyi-admin/src/main/resources/application-druid.yml @@ -7,9 +7,9 @@ spring: druid: # 主库数据源 master: - url: jdbc:p6spy:mysql://localhost:3306/ry?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true - username: root - password: 123456 + url: jdbc:p6spy:mysql://${address}:3306/${user}?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&nullCatalogMeansCurrent=true + username: ${user} + password: ${mypass} # 从库数据源 slave: # 从数据源开关/默认关闭 diff --git a/ruoyi-admin/src/main/resources/application.yml b/ruoyi-admin/src/main/resources/application.yml index 693ec56..9b0e697 100644 --- a/ruoyi-admin/src/main/resources/application.yml +++ b/ruoyi-admin/src/main/resources/application.yml @@ -59,13 +59,13 @@ spring: # redis 配置 redis: # 地址 - host: localhost + host: ${address} # 端口,默认为6379 - port: 6379 + port: 6388 # 数据库索引 database: 0 # 密码 - password: + password: ${rdpwass} # 连接超时时间 timeout: 10s lettuce: diff --git a/ruoyi-ui/.env.production b/ruoyi-ui/.env.production index 27c717e..e6b5c3a 100644 --- a/ruoyi-ui/.env.production +++ b/ruoyi-ui/.env.production @@ -3,3 +3,6 @@ ENV = 'production' # 若依管理系统/生产环境 VUE_APP_BASE_API = '/prod-api' + +# 路由懒加载 +VUE_CLI_BABEL_TRANSPILE_MODULES = true