上一页 1 2 3 4 5 6 ··· 19 下一页

2024年8月8日

linux导入JAVA_HOME不生效

摘要: linux上有多个jdk时,新jdk的JAVA_HOME已经导入成功了,但是不生效,还是用的老的。 这时候要确认下,新的jdk的java应用是不是有可执行权限。没有的话要加上。 阅读全文

posted @ 2024-08-08 09:44 荷楠仁 阅读(21) 评论(0) 推荐(0) 编辑

2024年8月1日

windows后台运行java进程

摘要: @echo off e: cd e:\tools\cleaner start javaw -jar cleaner-1.0-SNAPSHOT-jar-with-dependencies.jar exit 阅读全文

posted @ 2024-08-01 14:18 荷楠仁 阅读(22) 评论(0) 推荐(0) 编辑

2024年7月27日

oracle EF core hello world

摘要: 在oracle数据库里建一个表CREATE TABLE student ( num int not null, name varchar2(200) not null, PRIMARY KEY(num) ); 通过vs studio2022建一个"控制台应用"类型的项目. 通过vs studio上的 阅读全文

posted @ 2024-07-27 11:08 荷楠仁 阅读(17) 评论(0) 推荐(0) 编辑

2024年7月18日

ubuntu找不到source命令

摘要: 新版本的ubuntu的shell类型为dash,不认识source命令 用.(点号)代码source即可,如 . a.sh 阅读全文

posted @ 2024-07-18 12:14 荷楠仁 阅读(232) 评论(0) 推荐(0) 编辑

2024年7月11日

Java单例模式

摘要: public enum ConfReader { INSTANCE; private Conf conf; ConfReader() { InputStream is = null; try { File initialFile = new File("conf.yml"); is = new Fi 阅读全文

posted @ 2024-07-11 22:09 荷楠仁 阅读(4) 评论(0) 推荐(0) 编辑

2024年6月17日

linux查看当前文件夹下文件和文件夹大小

摘要: ls -l| awk '{print $9}' | xargs du -sh 阅读全文

posted @ 2024-06-17 18:32 荷楠仁 阅读(27) 评论(0) 推荐(0) 编辑

2023年11月25日

windows查看端口被谁占用

摘要: 假定提示25528端口被占用,先用 netstat -ano | findstr 25528�� 查出来占用端口的进程id 再用tasklist | findstr id 查出来端口被谁占用 阅读全文

posted @ 2023-11-25 17:00 荷楠仁 阅读(8) 评论(0) 推荐(0) 编辑

2023年11月17日

javascript postMessage给子页面发消息

摘要: 发送消息页面 <!DOCTYPE html> <html> <head> <title>demo</title> <meta charset="utf-8" /> <script> var childwin const childname = "popup" function openChild() 阅读全文

posted @ 2023-11-17 12:25 荷楠仁 阅读(130) 评论(0) 推荐(0) 编辑

2023年11月15日

chrome浏览器报Cannot read properties of undefined (reading 'getUserMedia')

摘要: chrome访问摄像头的时候可能报这个错误。使用https协议可以解决这个问题,如果不能使用https可以通过修改chrome配制解决。 在chrome地址栏输入chrome://flags/#unsafely-treat-insecure-origin-as-secure 在Insecure or 阅读全文

posted @ 2023-11-15 16:44 荷楠仁 阅读(3195) 评论(0) 推荐(0) 编辑

javascript promise all实现图片顺序加载

摘要: 不使用promise时是异步加载,图片加载的顺序不固定 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-sca 阅读全文

posted @ 2023-11-15 16:35 荷楠仁 阅读(97) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 19 下一页

导航

统计

点击右上角即可分享
微信分享提示