摘要: 用多线程模拟龟兔赛跑 package Thread; /** * 多线程模拟龟兔赛跑 * * @author ZhaoLu cang on 2021/4/10 0010 */ public class Race implements Runnable{ //胜利者变量 private String 阅读全文
posted @ 2021-04-10 17:34 雾霾王者 阅读(63) 评论(0) 推荐(0) 编辑
摘要: 创建线程的三种方式 继承Thread类(重点) 实现Runnable接口(重点)推荐使用 实现Callable接口(了解) 继承Thread类 package Thread; /** * 创建线程方式一:继承Thread * * @author ZhaoLu cang on 2021/4/10 00 阅读全文
posted @ 2021-04-10 17:11 雾霾王者 阅读(81) 评论(0) 推荐(0) 编辑
摘要: Idea 》setting--》plugins 搜索Vue进行安装 简单实现官方演示 新建项目--》创建demo01.html 第一个Vue实例 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</ 阅读全文
posted @ 2021-04-10 13:19 雾霾王者 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 内置注解: package Comments; import java.util.ArrayList; import java.util.List; /** * 注解学习 * * @author ZhaoLu cang on 2021/4/8 0008 */ public class 阅读全文
posted @ 2021-04-09 12:37 雾霾王者 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 1.绝对路径/相对路径 web.xml里的welcome-file-list里设置默认访问页面为/html/index.html 但是在访问时,页面CSS都没加载。 正常输入网址却没问题。用/html/index.jsp也没问题。配置如下 <welcome-file-list> <welcome-f 阅读全文
posted @ 2021-03-24 03:33 雾霾王者 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 目录结构 package com.zlc.controller; import com.alibaba.fastjson.JSON; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jac 阅读全文
posted @ 2021-03-22 19:55 雾霾王者 阅读(54) 评论(0) 推荐(0) 编辑
摘要: 代码如下: import requests from bs4 import BeautifulSoup import News.IO as io url = "http://www.qxkp.net/zhfy/" # 设置头 cookie = { "cityPy": "UM_distinctid=1 阅读全文
posted @ 2021-03-15 19:54 雾霾王者 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 创建maven项目,在pox.xml添加依赖 <dependency> <groupId>org.projectlombok</groupId> <artifactId>lombok</artifactId> <version>1.16.10</version> </dependency> 更新ma 阅读全文
posted @ 2021-03-14 00:45 雾霾王者 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 在抽象接口编辑注解 @Select("select * from user") List<User> getUsers(); 在mybatis-config.xml即mybatis核心配置文件中绑定接口 <!--绑定接口--> <mappers> <mapper class="com.zlc.dao 阅读全文
posted @ 2021-03-13 23:33 雾霾王者 阅读(63) 评论(0) 推荐(0) 编辑
摘要: resources下创建log4j.properties文件 #将等级为DEBUG的日志信息输出到console和file这两个目的地,console和file的定义在下面的代码 log4j.rootLogger=DEBUG,console,file #控制台输出的相关设置 log4j.append 阅读全文
posted @ 2021-03-12 19:52 雾霾王者 阅读(266) 评论(0) 推荐(0) 编辑