08 2021 档案

摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>过滤器应用示例 敏感词过滤</title> </head> <body> <form action="noteServlet" method="post" ac 阅读全文
posted @ 2021-08-31 22:05 李林林 阅读(47) 评论(0) 推荐(0)
摘要:package com.item.designpattern; /** * 1.真实类 */ public class Lenovo implements SaleComputer { @Override public String sale(double money) { System.out.p 阅读全文
posted @ 2021-08-31 22:01 李林林 阅读(33) 评论(0) 推荐(0)
摘要:package com.session.homework; import cn.hutool.core.date.DateUtil; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; 阅读全文
posted @ 2021-08-30 22:54 李林林 阅读(150) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <<<link rel="stylesheet" href="../img/pdd002.css"> </head> <body> <div class="div 阅读全文
posted @ 2021-08-30 21:29 李林林 阅读(121) 评论(0) 推荐(0)
摘要:package com.identifycode.servlet; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; imp 阅读全文
posted @ 2021-08-30 17:32 李林林 阅读(77) 评论(0) 推荐(0)
摘要:package com.session.homework; import cn.hutool.core.date.DateUtil; import com.sun.org.apache.bcel.internal.generic.NEW; import javax.servlet.ServletEx 阅读全文
posted @ 2021-08-30 15:55 李林林 阅读(80) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-29 14:18 李林林 阅读(22) 评论(0) 推荐(0)
摘要:1.有个获取登陆用户是否每天第一次登陆系统需求,考虑不需要入库操作,就用redis设置key每天凌晨0点删除 /** * 获取当前时间到凌晨12点的秒数 * @return */ public Long getSecondsNextEarlyMorning() { Calendar cal = Ca 阅读全文
posted @ 2021-08-29 14:12 李林林 阅读(548) 评论(0) 推荐(1)
摘要:查错表了!!! 阅读全文
posted @ 2021-08-29 12:24 李林林 阅读(22) 评论(0) 推荐(0)
摘要:package cn.cookie.demo; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.Cookie; import ja 阅读全文
posted @ 2021-08-28 22:48 李林林 阅读(79) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-28 20:12 李林林 阅读(23) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>HttpServletLogin</title> <link rel="stylesheet" href="./login.css"> </head> <body> <!-- se 阅读全文
posted @ 2021-08-28 02:31 李林林 阅读(30) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 18:37 李林林 阅读(31) 评论(0) 推荐(0)
摘要:Jsoup:jsoup 是一款Java 的HTML解析器,可直接解析某个URL地址、HTML文本内容。它提供了一套非常省力的API,可通过DOM,CSS以及类似于jQuery的操作方法来取出和操作数据。 * 快速入门: * 步骤: 1. 导入jar包 jsoup-1.11.2.jar 2. 获取Do 阅读全文
posted @ 2021-08-27 00:30 李林林 阅读(51) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 00:16 李林林 阅读(19) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 00:15 李林林 阅读(31) 评论(0) 推荐(0)
摘要:2. 语法: * 基本语法: 1. xml文档的后缀名 .xml 2. xml第一行必须定义为文档声明 3. xml文档中有且仅有一个根标签 4. 属性值必须使用引号(单双都可)引起来 5. 标签必须正确关闭 6. xml标签名称区分大小写 * 快速入门: <?xml version='1.0' ? 阅读全文
posted @ 2021-08-27 00:13 李林林 阅读(56) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 00:12 李林林 阅读(14) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-27 00:10 李林林 阅读(18) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-26 23:53 李林林 阅读(13) 评论(0) 推荐(0)
摘要:<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>变量</title> </head> <body> <script> alert("变量练习"); /** * document.write(num+"<br>");输出到页面上 阅读全文
posted @ 2021-08-26 21:15 李林林 阅读(24) 评论(0) 推荐(0)
摘要:package com.ll.homework; import javax.servlet.RequestDispatcher; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; im 阅读全文
posted @ 2021-08-26 16:11 李林林 阅读(1248) 评论(0) 推荐(0)
摘要:1 实现Servlet接口,然后实现接口中的五个方法,代码为: public class Hello implements Servlet{ //该函数用于初始化servlet,类似于类的构造函数,该函数只会被调用一次 public void init(ServletConfig parm1) th 阅读全文
posted @ 2021-08-26 16:02 李林林 阅读(72) 评论(0) 推荐(0)
摘要:1.在web.xml中配置 2.使用注解 从Servlet3.0版本后支持注解配置,可以省去web.xml直接在类上使用@WebServlet注解,进行配置。 阅读全文
posted @ 2021-08-26 14:07 李林林 阅读(118) 评论(0) 推荐(0)
摘要:package com.lll.servlet; import javax.servlet.*; import java.io.IOException; public class ServletDemo2 implements Servlet { public String str="A"; @Ov 阅读全文
posted @ 2021-08-26 13:57 李林林 阅读(39) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 21:30 李林林 阅读(46) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 21:20 李林林 阅读(25) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 21:05 李林林 阅读(31) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 20:35 李林林 阅读(43) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 18:59 李林林 阅读(28) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 18:41 李林林 阅读(33) 评论(0) 推荐(0)
摘要:创建项目跟原来的版本有很大不一样的,缺少了Spring,以及web创建等。 跟普通Java项目创建一样,最后点Finish。 阅读全文
posted @ 2021-08-25 17:17 李林林 阅读(48) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-25 12:52 李林林 阅读(73) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-24 15:58 李林林 阅读(37) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2021-08-18 14:29 李林林 阅读(27) 评论(0) 推荐(0)
摘要:1.SVN介绍 SVN是Subversion的简称,是一个自由开源的版本控制系统。Subversion将文件存放在中心版本库里,这个版本库很像一个普通的文件服务器,不同的是,它可以记录每一次文件和目录的修改情况,这样就可以借此将数据恢复到以前的版本,并可以查看数据的更改细节。 2.SVN基本概念 3 阅读全文
posted @ 2021-08-18 13:34 李林林 阅读(68) 评论(0) 推荐(0)
摘要:*{ margin: 0; padding: 0s; } .box{ position: fixed; top: 0; width: 100%; height: 103px; background-color: white; border-bottom: 4px solid red; } .div1 阅读全文
posted @ 2021-08-15 04:40 李林林 阅读(34) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>002实现淘宝下三角</title> <style type="text/css"> div { width: 0px; height: 0px; /* backgroun 阅读全文
posted @ 2021-08-15 02:51 李林林 阅读(34) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>001淘宝官网实现圆角</title> <link rel="stylesheet" href="../Css/001.css"> </head> <body> <div> 阅读全文
posted @ 2021-08-15 02:41 李林林 阅读(33) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>QQ会员导航栏</title> <link rel="stylesheet" href="../css/025.css"> </head> <body> <div id=" 阅读全文
posted @ 2021-08-14 23:33 李林林 阅读(25) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>z-index</title> <link rel="stylesheet" href="./024.css"> </head> <body> <div 阅读全文
posted @ 2021-08-14 14:02 李林林 阅读(135) 评论(0) 推荐(0)
摘要:一.知识点 定位:基于XXX定位,上下左右~ 没有父级元素的情况下,相对于浏览器定位 假设父级元素存在定位,我们通常会相对于父级元素进行偏移 在父级元素范围内移动 相对于父级或者浏览器的位置,进行指定的偏移,绝对位置的话,它不在标准文档流之中,原来的位置不会被保留 二.代码 <!DOCTYPE ht 阅读全文
posted @ 2021-08-14 13:08 李林林 阅读(49) 评论(0) 推荐(0)
摘要:一.知识点 相对定位:position:relative; 相对于原来的位置,进行指定的迁移,相对定位的话,它仍然在标准文档流之中,原来位置会被保留 二.代码 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>相对定位</titl 阅读全文
posted @ 2021-08-14 13:04 李林林 阅读(33) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>解决父级元素塌陷的问题</title> <link rel="stylesheet" href="../css/020.css"> </head> <body> <div 阅读全文
posted @ 2021-08-14 12:22 李林林 阅读(56) 评论(0) 推荐(0)
摘要:解决方案: 1、增加父级元素的高度 #father{ border: 1px #000 soild; height:500px; } 2、增加一个空的div标签,清除浮动 <div class="clear"></div> .clear{ clear:both; margin: 0; padding 阅读全文
posted @ 2021-08-14 12:18 李林林 阅读(64) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>float的使用</title> <link rel="stylesheet" href="../css/020.css"> </head> <body> <div id= 阅读全文
posted @ 2021-08-13 23:05 李林林 阅读(53) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>display的使用</title> <link rel="stylesheet" type="text/css" href="../css/019.css"/> </he 阅读全文
posted @ 2021-08-13 22:21 李林林 阅读(44) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>让相片变成圆角</title> <link rel="stylesheet" href="../css/018.css"> </head> <body> <img src= 阅读全文
posted @ 2021-08-13 18:43 李林林 阅读(44) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>做一个仿制的登录页面</title> <link rel="stylesheet" type="text/css" href="../css/017.css" /> </h 阅读全文
posted @ 2021-08-13 16:51 李林林 阅读(23) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> <link rel="stylesheet" href="../css/015.css"> </head> <body> <div id="nav"> < 阅读全文
posted @ 2021-08-13 15:32 李林林 阅读(17) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>超链接伪类</title> <link rel="stylesheet" href="../css/014.css"> </head> <body> <img src=". 阅读全文
posted @ 2021-08-13 15:16 李林林 阅读(42) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <link rel="stylesheet" href="../css/012.css"> <title>文本样式</title> </head> <body> <img src=".. 阅读全文
posted @ 2021-08-13 14:45 李林林 阅读(61) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>ID选择器</title> <link rel="stylesheet" href="../css/004.css"> </head> <body> <h1 id="olu 阅读全文
posted @ 2021-08-12 23:31 李林林 阅读(50) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>类选择器</title> <link rel="stylesheet" href="../css/003.css"> </head> <body> <h1 class="n 阅读全文
posted @ 2021-08-12 23:26 李林林 阅读(31) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>通用选择器</title> <link rel="stylesheet" href="../css/008.css"> </head> <body> <p>p0</p> < 阅读全文
posted @ 2021-08-12 22:54 李林林 阅读(27) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <!-- 如果需要选择紧接在另一个元素后的元素,而且二者有相同的父元素,可以使用相邻兄弟选择器(Adjacent sibling selector) --> <head> <meta charset="utf-8"> <title>相邻兄弟选择器 阅读全文
posted @ 2021-08-12 22:52 李林林 阅读(67) 评论(0) 推荐(0)
摘要:代码: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>子选择器</title> <link rel="stylesheet" href="../css/006.css"> </head> <body> <p>p1</p> <p 阅读全文
posted @ 2021-08-12 22:50 李林林 阅读(32) 评论(0) 推荐(0)
摘要:001层次选择器(分类002-005): 002:后代选择器:在某个元素后面 {祖爷爷 爷爷 爸爸 我} /*后代选择器*/ body p{ background: aquamarine; } 子选择器 003:子选择器 /*子选择器*/ body>p{ background: brown; } 0 阅读全文
posted @ 2021-08-12 22:45 李林林 阅读(39) 评论(0) 推荐(0)
摘要:002.后代选择器 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>后代选择器</title> <link rel="stylesheet" href="../css/005.css"> </head> <body> <p>p1 阅读全文
posted @ 2021-08-12 22:39 李林林 阅读(36) 评论(0) 推荐(0)
摘要:代码实现:给一个内部类对象,如何通过反射,去获取所依靠的外部类对象的某个成员变量并打印出来。 public class A { int age=10; class B { } } public class Main { public static void main(String[] args) t 阅读全文
posted @ 2021-08-12 21:35 李林林 阅读(537) 评论(0) 推荐(0)