博主首页
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 47 下一页
摘要: JS定时任务 1. 页面上2秒执行一次任务: setInterval(function(){ //执行任务 },2000); //取消执行 clearInterval(); 2.延时执行: JS都是延时执行的,没有多线程概念,碰到要使用全局变量的时候,要使用递归来实现全局变量数值变化! 3.页面上只 阅读全文
posted @ 2024-02-19 14:54 笑~笑 阅读(521) 评论(0) 推荐(0)
摘要: <body> <img id="img1" src="http://127.0.0.1:8081/t1/img" onclick="updateImg1()"> </body> <script> function updateImg1(){ $("#img1").attr("src","http:/ 阅读全文
posted @ 2024-02-19 14:53 笑~笑 阅读(114) 评论(0) 推荐(0)
摘要: public static void main(String[] args) { System.setProperty("java.awt.headless", "false"); SpringApplication.run(SpringBootMain.class, args); } 阅读全文
posted @ 2024-02-19 14:28 笑~笑 阅读(27) 评论(0) 推荐(0)
摘要: <img src="http://127.0.0.1:8081/t1/img"> @GetMapping("/img") @SneakyThrows public void test01(HttpServletResponse response){ String jp = Jie截屏.jp(0, 0 阅读全文
posted @ 2024-02-19 14:25 笑~笑 阅读(177) 评论(0) 推荐(0)
摘要: 添加启动类 @SpringBootApplication public class SpringBootMain { public static void main(String[] args) { SpringApplication.run(SpringBootMain.class, args); 阅读全文
posted @ 2024-02-19 11:41 笑~笑 阅读(116) 评论(0) 推荐(0)
摘要: 将启动类放在包下面,不能直接放在java根目录下 阅读全文
posted @ 2024-02-19 11:25 笑~笑 阅读(11) 评论(0) 推荐(0)
摘要: @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8") 阅读全文
posted @ 2024-01-19 09:22 笑~笑 阅读(31) 评论(0) 推荐(0)
摘要: 找不到或无法加载主类、 1、简单jdk配置有没有问题 2、项目有没有编译成功或者重新编译试试 代码修改了运行还是旧代码 将项目的.iml文件删除掉、mvn idea:module重新生成一下,重启一下编辑器 模块有问题的话 就删了重新导入一下 无法运行的话记得选择一下模块 阅读全文
posted @ 2024-01-17 14:41 笑~笑 阅读(77) 评论(0) 推荐(0)
摘要: RedisURI uri = RedisURI.Builder.redis("XXXX", 16379) .withDatabase(6) .withPassword("XXXX") .build(); redisClient = RedisClient.create(uri); connect= 阅读全文
posted @ 2023-11-30 10:29 笑~笑 阅读(22) 评论(0) 推荐(0)
摘要: public class RedisTag { /** * * @param tagName * @param type 1、开始2、结束 * @param redisTemplate * @return */ public static boolean tag(String tagName,Str 阅读全文
posted @ 2023-11-30 10:28 笑~笑 阅读(14) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 47 下一页