欢迎访问我的个人网站==》 jiashubing.cn
上一页 1 2 3 4 5 6 ··· 40 下一页
摘要: js 数组创建 HTML 列表 <!DOCTYPE html> <html> <head> <title></title> <script src="../trd/jquery/jquery.js"></script> <script type="text/javascript"> window.o 阅读全文
posted @ 2024-02-28 17:23 贾树丙 阅读(50) 评论(0) 推荐(0)
摘要: 比如,jar包直接放到根目录 pom.xml 里这么配置 <dependency> <groupId>njcanc</groupId> <artifactId>njcanc</artifactId> <version>2.12</version> <scope>system</scope> <sys 阅读全文
posted @ 2024-02-26 13:50 贾树丙 阅读(448) 评论(0) 推荐(0)
摘要: 震惊死了,System.out.println 竟然没打印出来,别人提bug才发现。 最终发现是 grep console 插件导致的,把它关了就可以了。 关键是 grep console 过滤的内容并没有我输出的字符啊,服了,估计是插件本身的bug 阅读全文
posted @ 2024-01-24 15:40 贾树丙 阅读(429) 评论(0) 推荐(0)
摘要: -am,--also-make If project list is specified, also build projects required by the list如果指定了项目列表,还可以生成列表所需的项目 -amd,--also-make-dependents If project li 阅读全文
posted @ 2023-12-20 15:56 贾树丙 阅读(269) 评论(0) 推荐(0)
摘要: 问题 IDEA启动maven项目,每次启动都自动去远程仓库拉jar包,很慢,还会报错,比如下面这样 [WARNING] Could not transfer metadata xxxxxx-SNAPSHOT/maven-metadata.xml from/to public xxxxx: Trans 阅读全文
posted @ 2023-12-20 15:37 贾树丙 阅读(1201) 评论(0) 推荐(0)
摘要: sed中''之间的单引号特殊处理需要'"'"' (两个单引号中两个双引号再最里面是目标一个单引号) 比如:sed -i 's#<a id='"'"'img_logo'"'"' href="http://www.baidu.com/"</a>##g' test.txt 双引号不需要特殊处理,直接用 阅读全文
posted @ 2023-10-23 15:33 贾树丙 阅读(485) 评论(0) 推荐(0)
摘要: 两个单引号表示一个单引号 比如MESSAGE_TICKET_NOT_EXIST=票根''{0}''在不存在 双引号,不需要额外处理,直接使用 比如screen.confirmation.message=单击 <a href="{0}">这里</a> 阅读全文
posted @ 2023-10-23 15:27 贾树丙 阅读(171) 评论(0) 推荐(0)
摘要: import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.lang3.StringUtils; import org.apache.poi.openxml4j.exceptions.Invali 阅读全文
posted @ 2023-10-23 15:17 贾树丙 阅读(77) 评论(0) 推荐(0)
摘要: 以下内容来源于:https://github.com/rabbitmq/rabbitmq-delayed-message-exchange/issues/72 Delay interval predictability We have noticed a general issue with the 阅读全文
posted @ 2023-10-13 16:53 贾树丙 阅读(224) 评论(0) 推荐(0)
摘要: Java中的参数为@RequestParam(value = "keys[]") String[] keys Url参数是这样的:keys%5B%5D=logo&keys%5B%5D=logoutUrl&keys%5B%5D=registerProtocolTitle&keys%5B%5D=regi 阅读全文
posted @ 2023-09-28 16:47 贾树丙 阅读(402) 评论(0) 推荐(0)
摘要: 不要用get,get的话有可能并发 使用 setnx ex NX :只在键不存在时,才对键进行设置操作。 SET key value NX 效果等同于 SETNX key value 。EX second :设置键的过期时间为 second 秒。 SET key value EX second 效果 阅读全文
posted @ 2023-09-28 16:32 贾树丙 阅读(34) 评论(0) 推荐(0)
摘要: 使用jquery的 $.get 绝对路径$.get("https://xxx.html", function (result) { $("#content").html(result); }); // 相对路径$.get("./xxx.md", function (result) { $("#con 阅读全文
posted @ 2023-09-28 16:14 贾树丙 阅读(23) 评论(0) 推荐(0)
摘要: 一共三个函数,合起来用 SELECT REPLACE(UNIX_TIMESTAMP(NOW(3)), '.', ''); 阅读全文
posted @ 2023-09-06 13:52 贾树丙 阅读(283) 评论(0) 推荐(0)
摘要: 这知识网上讲得挺多的,就是突然想发个博客了,没啥可发的,感觉越来越懈怠了 需求 比如这个需求,重写jar包里的类,修改连接超时的时间 方案 1、首先org.springframework.http.client.SimpleClientHttpRequestFactory 类里添加变量和set方法 阅读全文
posted @ 2023-08-30 16:26 贾树丙 阅读(49) 评论(0) 推荐(0)
摘要: 关键就是统计次数 技巧:1、使用guava cache缓存 来计数2、利用引用变量的特性,减少put,只使用get 如果重新put赋值,缓存的时间会刷新,比如下面例子的b,一共输出了7次,而a只输出了5次 import com.google.common.cache.Cache; public cl 阅读全文
posted @ 2023-08-24 17:03 贾树丙 阅读(242) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 40 下一页