2022年1月3日

A component required a bean named 'redisTemplate' that could not be found.

摘要: springBoot 配置多个redis数据源 报错 A component required a bean named 'redisTemplate' that could not be found. 原因是 spring找不到默认的redis数据源 需要在 其中一个 bean 上加注解 @Pri 阅读全文

posted @ 2022-01-03 16:27 菜鸟i 阅读(1922) 评论(0) 推荐(0)

自定义 mybatis-plus 日志

摘要: import lombok.extern.slf4j.Slf4j; import org.apache.ibatis.executor.statement.StatementHandler; import org.apache.ibatis.plugin.*; import org.apache.i 阅读全文

posted @ 2022-01-03 16:18 菜鸟i 阅读(302) 评论(0) 推荐(0)

导航