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