From 26cbe18aedb78d53aa6d8f5ba4c15c2ee1d662eb Mon Sep 17 00:00:00 2001 From: TianJun Date: Thu, 29 Apr 2021 16:12:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- src/application-dev.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index f7d3e29..89785ad 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ GO + Gin + Gorm + jwt - application_config.go 配置文件解析配置 - common.go 全局变量 - context_config.go 上下文预留配置 - - datasource_config.go 数据源配置 + - datasource_config.go 数据源配置(important: 注册数据结构体) - log_config.go 日志配置 - middleware - gin_engine.go gin配置 @@ -25,6 +25,7 @@ GO + Gin + Gorm + jwt - gin_router.go 路由载入配置 - jwt_engine.go jwt配置 - redis_client.go redis配置 + - urls.go 路由配置(important: 绑定路径和处理器之间的关系) - modules - system 系统模块 - rest @@ -42,7 +43,6 @@ GO + Gin + Gorm + jwt - application.yml 主配置文件 - application-dev.yml 环境配置文件 - main.go 应用入口 - - urls.go 路由配置(绑定路径和处理器之间的关系) # go.mod 依赖说明文件 ``` diff --git a/src/application-dev.yml b/src/application-dev.yml index 5a6b669..9889433 100644 --- a/src/application-dev.yml +++ b/src/application-dev.yml @@ -13,7 +13,7 @@ log: redis: addr: localhost:6379 - passwd: + passwd: database: 10 max-idle: 50 max-active: 100 @@ -28,7 +28,7 @@ database: database: test sqlite3: db-file: ./sqlite3.db - + jwt: # MD5 SHA256 secret: 878bb8ef8807b5ddbcbddbf909e5526262cf74a54fb523cee17e5b80a1b7510d