采坑记录
采坑记录
Johnny_Cheung
逝者如斯夫,不舍昼夜!
展开
-
Invalid byte tag in constant pool: 19
需要把tomcat.util.scan.DefaultJarScanner.jarsToSkip 新增相应的jar包。经查询有的说要把相关的jar 包进行降级,但是我这边降了还是会报一样的错误,经过大牛的指点,需要修改。Server下边的tomcat的catalina.properties文件进行操作,问题解决。目前在用eclipse启动老项目的时候遇到一个报错,导致tomcat 不来,报。原创 2023-01-09 21:00:00 · 512 阅读 · 0 评论 -
String.split()字符串截取踩坑
在工作中有个代码块用到String.split()来进行截取特殊字符遇到的坑String str = "||";String[] strs = str.split("\\|");System.out.println(strs.length);最后结果输出是 0起初我以为是\\|的原因后来看到还可以用Pattern.quote("|")代替String str = "||";String[] strs = str.split(Pattern.quote("|"));System.o原创 2021-10-17 15:59:08 · 735 阅读 · 0 评论 -
idea项目目录结构不是树形(横向变纵向)
原文链接https://blog.csdn.net/stay_foolish12/article/details/106905289转载 2021-06-10 10:46:58 · 2214 阅读 · 1 评论 -
The temporary upload location is not valid 临时上传位置是无效的
The temporary upload location is not valid临时上传位置是无效的?原因:1.spring boot的应用服务在启动的时候,会生成在操作系统的/tmp目录下生成一个Tomcat.*的文件目录,用于"java.io.tmpdir"文件流操作TomcatEmbeddedServletContainerFactory2.程序对文件的操作时:会生成临时文件,暂存在临时文件中;lunix 系统的tmpwatch 命令会删除10天未使用的临时文件;长时..转载 2021-05-10 15:09:51 · 4529 阅读 · 0 评论 -
Error:svn: E155037: Previous operation has not finished; run ‘cleanup‘ if it was interrupted
今天使用svn时报了一个这个错,网上搜索时都说是要使用sqllite来删除svn队列。其实可以直接使用idea自带的terminal运行svn cleanup 就可以解决这个问题。原文链接https://blog.csdn.net/qq_40670830/article/details/86645007...转载 2021-05-07 16:49:48 · 105 阅读 · 0 评论 -
Can‘t commit changes due to unresolved conflicts
commit时出现can not commit changes due to unresolved conflicts——“由于未解决的冲突而无法提交更改”其实总结来讲就是有些文件还处于红色:未加入版本控制 把文件加入一下版本控制即可解决此问题原文链接https://www.pianshen.com/article/70991676299/https://blog.csdn.net/weixin_45785873/article/det...转载 2021-04-27 15:51:57 · 14308 阅读 · 0 评论 -
将逗号拼接的字符串转义为SQL中IN的条件
将逗号拼接的字符串转义为SQL中IN的条件 public static void main(String[] args) { String str = "1,2,3,4"; getInSql(str.split(",")); } private static String getInSql(String[] array) { String inSql = ""; if (null != array &a...原创 2021-04-22 10:26:08 · 998 阅读 · 0 评论 -
docker安装mysql遇到的问题1251-Client does not support authentication protocol
navicat连接mysql时会报错1251-Client does not support authentication protocol requested by server 我这里是用的docker安装的容器这里的原因是因为root账号的host是localhost导致的,只要修改一下权限即可;第1步:docker exec -it mysqlserver /bin/bash第2步:mysql -uroot -p第3步:输入root密码第4步:show ..原创 2021-04-09 23:30:50 · 330 阅读 · 1 评论 -
Spring中set注入带static报错
最近在工作中遇到一个问题,代码中传的参数都未能获取到,后来看日志才发现有报错,具体报错如下:Error setting property values; nested exception is org.springframework.beans.NotWritablePropertyException解决这个问题只要在A类中为引用的对象B添加setter方法就可以了,但是后来发现还是报错。Bean property 'XXX' is not writable or has an invalid.转载 2021-03-24 09:44:20 · 276 阅读 · 0 评论 -
button标签点击刷新页面?
button标签点击刷新页面?原来的代码<button style="width:80px;height:40px" onclick="">选择分组</button>今天遇到个很奇怪的问题,页面上一个button按钮不论如何点击都会刷新本页面,后来百度一番原本是想禁止刷新。window.onbeforeunload = function(e) {var dialogText = 'Dialog text here';e.returnValue = dialogTe原创 2021-03-04 17:36:47 · 619 阅读 · 2 评论