From aed297a5fbc8df9dab01b28da21f872ee546b43c Mon Sep 17 00:00:00 2001 From: feiyu02 <risaku@163.com> Date: 星期一, 13 十月 2025 16:15:11 +0800 Subject: [PATCH] 2025.10.13 1. 统一调整controller层的返回类型,通过添加全局响应增强器GlobalResponseAdvice来管理返回结果; 2. 新增mybatis-generator自定义插件,实现给数据库实体entity自动添加swagger注解@ApiModel和@ApiModelProperty --- src/main/resources/application-pro.yml | 23 ++++++++++++++++++----- 1 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/main/resources/application-pro.yml b/src/main/resources/application-pro.yml index 135277d..7996f31 100644 --- a/src/main/resources/application-pro.yml +++ b/src/main/resources/application-pro.yml @@ -1,7 +1,20 @@ -springfox: - documentation: - swagger: - v2: - enabled: false +spring: + datasource: + ds1: + #-鍙戝竷鏈嶅姟鍣�- + url: jdbc:mysql://localhost:3306/supervision?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: supervision + password: supervision_feiyu2021 + ds2: + #-鍙戝竷鏈嶅姟鍣�- + url: jdbc:mysql://localhost:3306/ledger?serverTimezone=Asia/Shanghai&prepStmtCacheSize=517&cachePrepStmts=true&autoReconnect=true&characterEncoding=utf-8&allowMultiQueries=true&useSSL=false + username: ledger + password: ledger_fxxchackxr +mybatis: + configuration: + log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl +imgPath: D:/02product/04supervision/images/ +filePath: D:/02product/04supervision/files/ +mode: pro \ No newline at end of file -- Gitblit v1.9.3