
springboot
lei911gang
这个作者很懒,什么都没留下…
展开
-
springboot 集成 druid ,多数据源
1.config配置类 /** * *注解类,后面用来标注DAO方法 */ @Retention(RetentionPolicy.RUNTIME) @Target(value = {ElementType.METHOD, ElementType.TYPE}) public @interface DS { String value(); } /** * * 简单的路由规则,用来设置当前数据库连接 */ public class DynamicDataSource extends原创 2021-04-28 16:58:36 · 441 阅读 · 0 评论 -
springboot 集成 jedis , Could not get a resource from the pool
最近线上经常报错,错误如下 线上环境springboot 2.3.3 Jedis 2.9.1 redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool ...... Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Failed connecting to host redis-xx原创 2021-04-28 16:25:09 · 742 阅读 · 0 评论