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 阅读(1913) 评论(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 阅读(294) 评论(0) 推荐(0)

2021年8月12日

srpintBoot 项目单元测试启动报错 Error creating bean with name 'serverEndpointExporter'

摘要: ##srpintBoot 项目单元测试启动报错 Error creating bean with name 'serverEndpointExporter' 截图如下 找到报错的代码 @Bean public ServerEndpointExporter serverEndpointExporter 阅读全文

posted @ 2021-08-12 00:32 菜鸟i 阅读(534) 评论(0) 推荐(0)

2021年8月11日

完美解决 idea bulid 项目卡死,电脑cpu过高的问题

摘要: 问题如下 我之前的项目有一天突然启动不起来,电脑cpu一直满状态运行,持续几个小时都起不来 网上查了好多解决方案,什么清除缓存重启idea,启动的时候不要构建代码,虽然可以项目启动解决问题,但都是治标不治本 这个原因是项目的代码量和导入的包过大,大于你idea构建工具的栈空间大小,所以设置一下就好了 阅读全文

posted @ 2021-08-11 10:21 菜鸟i 阅读(948) 评论(0) 推荐(0)

2021年8月4日

用非指针的方式来理解单向链表(用json数据的方式来理解java单向链表)

摘要: 因为java里面是没有太多指针的概念,所以在学到数据结构的单向链表的时候容易搞糊涂 所以我用自己的理解方式来展示一下链表,就是常用的json数据格式 下面是代码: 单向链表的节点类 /** * 节点类 */ class DataNode { public String data; //存放节点数据 阅读全文

posted @ 2021-08-04 01:13 菜鸟i 阅读(145) 评论(0) 推荐(0)

2021年8月3日

使用数组模拟队列

摘要: package com.qmcheng.queue; import java.util.Scanner; /** * 使用数组模拟队列 */ public class ArrayQueueDemo { public static void main(String[] args) { Scanner 阅读全文

posted @ 2021-08-03 23:08 菜鸟i 阅读(49) 评论(0) 推荐(0)

2021年7月24日

Centos6.8 安装 mysql 5.5 遇到的问题

摘要: 今天在 Centos6.8 安装 mysql 5.5 时 使用命令 rpm -ivh MySQL-server-5.5.48-1.linux2.6.i386.rpm 遇到了下面的报错 warning: MySQL-server-5.5.48-1.linux2.6.i386.rpm: Header V 阅读全文

posted @ 2021-07-24 21:50 菜鸟i 阅读(207) 评论(0) 推荐(0)

导航