![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
problems
文章平均质量分 63
一盏红烛,一杯烧酒
慢慢摸索,逐步变强。
展开
-
空间占用计算
java中空间占用计算,评估原创 2023-10-21 17:56:35 · 196 阅读 · 0 评论 -
github Recv failure: Connection reset by peer
github Recv failure: Connection reset by peer原创 2023-07-29 21:13:02 · 3606 阅读 · 0 评论 -
swagger不可用
swagger不可用原创 2023-07-16 22:30:54 · 340 阅读 · 0 评论 -
springboot反射执行private方法@Autowired字段为空
springboot反射执行private方法时@autowired字段为空原创 2022-11-26 11:43:41 · 1611 阅读 · 0 评论 -
springboot输出时间和数据库中时间不一致问题
springboot输出时间和数据库中时间不一致问题问题描述基本知识介绍CST、UTC 、GMT测试demo代码结果结论问题解决时区相关配置查看比对处理jackson 全局配置同jdbc配置不一致jdbc 没有配置 serverTImezone个人理解参考问题描述数据库中存储的时间和我查库返给前端的时间不一致,例如差差八个小时,差12个小时等等。基本知识介绍CST、UTC 、GMT参考介绍UTC和GMT可以看成经度0度CST 可以看成 GMT+8 或者 UTC+8 就是北京时间,虽然它有很原创 2022-03-12 18:06:26 · 3811 阅读 · 0 评论 -
springboot报错解决org.springframework.util.Assert.isTrue(ZLjava/util/function/Supplier;)V
常见的处理方法,基本都类似常用处理方法使用如下配置<dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version></dependency><dependency> <groupId>org.spring原创 2021-10-19 10:09:41 · 1879 阅读 · 0 评论 -
2021-06-21无法访问@controller中路径、@Component没有注入bean容器
描述如题。在使用springboot开发时,使用了@Controller注解,结果无法访问对应的url,使用了@Component结果发现bean容器中没有对应的bean实例。解决springboot的启动类和controller类的文件夹应该在同一个文件夹下。碰到这问题一般都是没符合这个要求。检查一下。下面是解决办法1、修改目录结构2、设置扫描路径...原创 2021-06-21 15:49:39 · 2649 阅读 · 0 评论 -
excel 固定前几行
问题描述原本只需要固定第一行,后面因为需要,想固定前2行,百度了一下,一般解决办法,我试了一下,不能用(我的列数比较多,一页不能显示完全)解决办法这办法是偶然间发现的。1、固定第一行视图 》 冻结窗口 》冻结首行此时,第一行固定,不会随滚轮一起滑动了。2、选中第一行,点击插入插入成功后原来的第一行上面多了一行,可以编写内容。确认滑动一下滚轮,发现上面两行都是固定的。而且不受页面宽度的限制。...原创 2021-06-15 11:39:23 · 1111 阅读 · 0 评论 -
StringBuilder 一些思考
前提日常对比两个数组是否一样,通常是先比较两个数组的长度,如果长度一致,则比较里面的内容是否一样。今天突发奇想, 依稀记得 字符串 比对是根据 对应字符串池中地址 比对的,会不会快一点。过程首先,需要有数据,而且得量比较大,不然看不出什么差异需要进行对比,所以得2种以上方法运行,查看运行耗时之间的差异生成数据这里我是通过随机生成的,代码如下List<Integer> data=new ArrayList<>(4194304);for(int i=0;i<41原创 2021-05-12 14:30:28 · 88 阅读 · 0 评论 -
cas server正常启动,登陆报错FlowExecutionException
报错精简内容,具体内容在最后Request processing failed; nested exception is org.springframework.webflow.execution.FlowExecutionException根本原因javax.servlet.ServletException: Could not get RequestDispatcher for [/WEB-INF/view/jsp/default/ui/casLoginView.jsp]: Check that原创 2021-04-27 15:59:30 · 2063 阅读 · 1 评论 -
子类调用父类方法,父类中该方法 调用子类和父类共有方法的返回结果
如题,子类Print 方法调用父类的 see方法,父类的see方法调用 父类和子类共有的方法(即父类的Show方法,以及子类重写后的Show方法),请问最后返回的是哪个结果。测试parent 类public class Parent { public String Show(){ return "there is parent show"; } public String see(){ return Show(); }}chil原创 2021-01-25 16:40:56 · 477 阅读 · 0 评论 -
lambda 表达式 连续两个箭头 k -> (parentPath, currentChilds) -> {}
问题描述k -> (parentPath, currentChilds) -> {}看懵逼了。梳理listeners 的定义 ConcurrentMap<NotifyListener, ChildListener> 是一个mapNotifyListener 的定义是一个函数式接口ChildListener 的定义也是一个函数式接口。computeIfAbsent 方法的定义不太理解 lambda 的同学学习链接理解两个箭头的过程先看后面一原创 2021-01-06 17:34:51 · 2488 阅读 · 0 评论 -
linux 报错 参数列表过长
问题描述在修改 /etc/profile 后执行 source /etc/profile 出现错误,截图如下解决方法参考了解决方法 错误原因:是我在 profile中 也 写了 /etc/profile ,都是复制粘贴的错!!! 不过我是通过 notepad++ 解决的通过它连接虚拟机,然后就能选择 /etc/profile 并进行修改了 但是这里有一个问题,因为我之前直接执行了 source /etc/profile 导致我之后执行命令基本都是 参数列表过长,感觉好像是后台进程原创 2020-12-28 14:03:56 · 1638 阅读 · 1 评论 -
nginx 反向代理 404问题
问题描述电脑上装了两台虚拟机,内容如下:shanliang 192.168.175.130 有一个tomcatbanyu 192。168.175.128 有一个tomcat、有一个nginx我在两台虚拟机的 tomcat安装目录下 /webapps下创建了 test文件夹,并放了一个a.html 页面,内容是 < h1 > xxxx< /h1 >单机测试,两个 tomcat 页面shanliang 的 测试页面如下banyu 的测试页面原创 2020-12-23 11:27:51 · 5544 阅读 · 0 评论 -
sql- inner join、left join、right join
前置条件创建数据库,创建测试表,插入测试数据create database test;use testcreate table testJoin_one(id int(5),t_desc varchar(200));insert into testJoin_one(id,t_desc) values(1,'孙悟空'),(3,'沙悟净'),(5,'猪八戒');create table testJoin_two(id int(5),t_desc varchar(200));inse原创 2020-12-07 18:23:54 · 57 阅读 · 0 评论 -
mysql 1067出错 以及 启动多个数据库
mysql数据库启动报错// 查看 data文件夹下的 DESKTOP-RR3GOJS.err 错误如下201123 10:01:56 [Note] Plugin 'FEDERATED' is disabled.201123 10:01:56 InnoDB: The InnoDB memory heap is disabled201123 10:01:56 InnoDB: Mutexes and rw_locks use Windows interlocked functions201123原创 2020-11-23 11:40:39 · 120 阅读 · 1 评论 -
引入了lombok但是无法识别@getter、@slf4j等注解问题
问题描述pom中引入了lombok ,但是运行时无法识别@getter、@slf4j等注解我的碰到的问题如下lombok.javac.apt.LombokProcessor could not be initialized. Lombok will not run during this compilation: java.lang.IllegalArgumentException: com.sun.tools.javac.main.DelegatingJavaFileManager$Delegati原创 2020-10-30 10:21:36 · 1154 阅读 · 0 评论 -
gateway 常见错误总结
记录一下尝试使用gateway时碰到的各种问题。1、gateway提示与spring-boot-starter-web冲突Spring MVC found on classpath, which is incompatible with Spring Cloud Gateway at this time. Please remove spring-boot-starter-web dependency.这个错误提示,一开始以为是与spring-boot-starter-web的冲突,然后我把它排除原创 2020-10-29 14:16:57 · 7077 阅读 · 1 评论