上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页
摘要: nps代理 ftp 1、下载对应服务器端和客户端安装包 https://github.com/ehang-io/nps/releases //操作api文档 https://ehang-io.github.io/nps/#/example 2、修改默认的用户名密码以及 、通信的默认端口: 8024 阅读全文
posted @ 2022-07-07 10:11 成强 阅读(421) 评论(0) 推荐(0) 编辑
摘要: 转载:文章 https://www.cnblogs.com/sanye613/p/15027448.html JSR 提供的校验注解: @Null 被注释的元素必须为 null @NotNull 被注释的元素必须不为 null @AssertTrue 被注释的元素必须为 true @AssertFa 阅读全文
posted @ 2022-06-28 13:17 成强 阅读(561) 评论(0) 推荐(0) 编辑
摘要: 通常我们可以使用List自带的addAll来实现;但是项目中还是多用stream()来实现; 小例子 [{"n":7373,"d":[1103,1122,1124,1123,1135],"t":1,"l":false},{"n":7374,"d":[1200,1303,1396,1437,1407] 阅读全文
posted @ 2022-06-16 17:23 成强 阅读(11061) 评论(0) 推荐(0) 编辑
摘要: 最近项目中,要调用Python脚本,并拿到对应的结果,参考网上的例子,最简单的实现是 Runtime.getRuntime().exec开一个子线程,可以使用绝对路径;如果不加任何前缀,默认为当前项目路径下执行;展示再windows下调用;同理再linux下调用只需要修改命令就行了;这里要主要注意: 阅读全文
posted @ 2022-06-16 10:13 成强 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 网上有很多的参考方案: https://blog.csdn.net/qq_21223653/article/details/124877603 我记录一下,我使用的比较简单的方法,对我需要的字段进行更新 @Autowired private DeviceService deviceService; 阅读全文
posted @ 2022-06-14 13:46 成强 阅读(3411) 评论(0) 推荐(0) 编辑
摘要: 最近项目中用到定时任务,项目运行后,定时把redis中的数据更新到mysql中; 一、在项目启动类添加 @EnableScheduling 注解 二、测试启动类 @Component //交给spring管理 public class TestJob { @Scheduled(cron = "0/5 阅读全文
posted @ 2022-06-13 18:04 成强 阅读(318) 评论(0) 推荐(0) 编辑
摘要: async function testYiBU1(){ setTimeout(() => { test1() console.log(1,new Date().getTime()) }, 1) setTimeout(() => { console.log(2,new Date().getTime() 阅读全文
posted @ 2022-05-26 13:57 成强 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 1、父传子 父:<HelloWorld :msg=msg_hellow /> 子接收: ts的写法:defineProps<{ msg: string }>() js的写法:cosnt props=defineProps({ msg:{ type:String, default:()=>"没有传值显 阅读全文
posted @ 2022-05-19 14:54 成强 阅读(610) 评论(0) 推荐(0) 编辑
摘要: 报错原因,是当前终端的用户对报错的文件夹没有权限,解决方法 例如:报错提示/usr/local/*,终端输入: sudo chown -R $(whoami) /usr/local/* 阅读全文
posted @ 2022-05-18 16:04 成强 阅读(372) 评论(0) 推荐(0) 编辑
摘要: canvas监听画布上的内容被点击(仅仅适用于,画图上的内容较少(因为需要遍历) var cannvas=document.getElementById("cannvas"); var contenxt =cannvas.getContext("2d"); 一、获取鼠标停留在画布上的区域 var x 阅读全文
posted @ 2022-05-11 22:21 成强 阅读(620) 评论(1) 推荐(1) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页