From 66e37634649f5506e0a6c70e0f0bd16553bd4ed8 Mon Sep 17 00:00:00 2001 From: wanghu Date: Thu, 8 Oct 2026 19:26:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/application.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index bfd5d52..c9eb297 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -8,6 +8,13 @@ spring: time-zone: GMT+8 date-format: yyyy-MM-dd HH:mm:ss + autoconfigure: + # 平台 auth starter(1.0.0-20261007.161104-57 起)的 WeChatAuthAutoConfiguration + # 没加 @ConditionalOnClass 守卫,Bean 方法签名直接引用 StringRedisTemplate; + # 本服务刻意不引 redis(见 pom 注释),启动即在 Bean 反射解析时抛 + # TypeNotPresentException。本应用走 CAS 登录、无微信场景,整体排除该装配。 + exclude: com.yunhai.platform.auth.spring.wechat.WeChatAuthAutoConfiguration + datasource: # characterEncoding=UTF-8 + connectionCollation=utf8mb4_* 保证连接层按 utf8mb4 传输, # 避免中文写入 latin1 列时报 SQL 1366 Incorrect string value