晨风

-------------------- 业精于勤,荒于嬉;行成于思,毁于随

导航

2024年3月16日

摘要: 使用远程桌面办公的时候,有时候远程电脑没有掉网,但远程桌面因为一些问题始终起不来,这时候我们通常希望能够在连不上远程桌面的情况下重启远程电脑。 首先 cmd 命令 shutdown -m 是有重启/关闭远程电脑的功能的,但是它要求你现在组策略里设置好权限,单单靠这个是不行的。 这个时候需要先用 ne 阅读全文

posted @ 2024-03-16 00:44 shenyixin 阅读(55) 评论(0) 推荐(1) 编辑

2024年1月25日

摘要: 总算是跑起来了,看看效果吧 这是我的SQL 表里面插入数据 刷新下就可以看到已经查询出来了 canal报错nosuchmethod …bytebuffer 解决方法:更新jdk版本与es一致 cancal报错 config dir not found 替换classpath中间封号两边的值 cana 阅读全文

posted @ 2024-01-25 10:30 shenyixin 阅读(70) 评论(0) 推荐(0) 编辑

2024年1月18日

摘要: <div class="n-blog__content p-relative" th:utext="${item.content}" > 阅读全文

posted @ 2024-01-18 19:38 shenyixin 阅读(19) 评论(0) 推荐(0) 编辑

2023年12月27日

摘要: server { listen 80; server_name example.com; # HTTP重定向到HTTPS rewrite ^(.*)$ https://$host$1 permanent; } 阅读全文

posted @ 2023-12-27 14:03 shenyixin 阅读(2) 评论(0) 推荐(0) 编辑

2023年12月23日

摘要: //复制到剪切板 function copyToClipboard(text) { var input = document.createElement('input'); input.setAttribute('readonly', 'readonly'); input.setAttribute( 阅读全文

posted @ 2023-12-23 21:41 shenyixin 阅读(75) 评论(0) 推荐(0) 编辑

2023年12月4日

摘要: 1、从某个commit拉取分支 git checkout -b <new branch name> <commit_id> 例:git checkout -b test_branch 1f0a24f01e5 2、推送到远程 git push -u origin 分支名 例:git push -u o 阅读全文

posted @ 2023-12-04 11:41 shenyixin 阅读(99) 评论(0) 推荐(0) 编辑

2023年11月1日

摘要: 0.查看所有的库 SHOW DATABASES; 1.设置客户端连接数据库的字符集 SET NAMES 'utf8'; 如果数据子的字符集是utf8,而客户端连接数据库的字符集是latin1,数据库中的中文就会出现乱码,类似????? 2.查看当前库下的所有表 show tables; SHOW F 阅读全文

posted @ 2023-11-01 12:07 shenyixin 阅读(33) 评论(0) 推荐(0) 编辑

2023年9月13日

摘要: server { listen 8080; server_name localhost; location / { proxy_pass http://192.168.9.163:8899; } location /api/ { rewrite ^/api/(.*)$ /$1 break; prox 阅读全文

posted @ 2023-09-13 14:36 shenyixin 阅读(129) 评论(0) 推荐(0) 编辑

2023年8月7日

摘要: 说明: 通过 go 的标准库 exec 调用 cmd 命令时会弹出 cmd的黑窗口 只需要在编译时加入参数:-ldflags="-H windowsgui" 示例如下: go build -ldflags="-H windowsgui -w -s" main.go 通过 子进程 调用的 cmd 命令 阅读全文

posted @ 2023-08-07 12:40 shenyixin 阅读(335) 评论(0) 推荐(0) 编辑

2023年7月21日

摘要: @GetMapping("getA") public String getA(){ return "A"; } @GetMapping("getBToA") public ModelAndView getBToA(){ RedirectView redirectView=new RedirectVi 阅读全文

posted @ 2023-07-21 16:52 shenyixin 阅读(3) 评论(0) 推荐(0) 编辑