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 · 372 阅读 · 0 评论 -
springboot 集成 jedis , Could not get a resource from the pool
最近线上经常报错,错误如下线上环境springboot 2.3.3 Jedis 2.9.1redis.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 · 597 阅读 · 0 评论