上一页 1 2 3 4 5 6 ··· 33 下一页
摘要: ## 简单工厂模式 |角色|介绍| | | | |抽象产品|产品规范,定义了产品的主要特性和功能| |具体产品|实现或者继承抽象产品的子类| |具体工厂|提供了创建产品的方法,使用者通过该方法获取产品| ``` abstract class Coffee {} class CoffeeA exten 阅读全文
posted @ 2023-08-16 17:21 jsqup 阅读(2) 评论(0) 推荐(0) 编辑
摘要: ## 单例模式 - 定义:程序运行时,在java虚拟机中只存在该类的一个实例对象。 - demo: ``` package mode; public class SingleDemo { // 创建SingleDemo单例对象 private static SingleDemo instance = 阅读全文
posted @ 2023-08-15 17:11 jsqup 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 树的前序遍历(递归/遍历) 树的中序遍历(递归/遍历) 树的后序遍历(递归/遍历) 树的深度优先搜索(递归/遍历) 树的广度优先搜索(递归/遍历) 阅读全文
posted @ 2023-03-22 17:51 jsqup 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 日期转为时间戳 unix_timestamp('2022-11-12 00:00:00.000') 结果:1668182400 from_unixtime(unix_timestamp('2022-11-12 00:00:00.000'), 'yyyy-MM-dd') 结果:2022-11-12 将 阅读全文
posted @ 2023-02-02 18:34 jsqup 阅读(19) 评论(0) 推荐(0) 编辑
摘要: ![](https://img2023.cnblogs.com/blog/2487693/202301/2487693-20230128093118668-546104230.png) ![](https://img2023.cnblogs.com/blog/2487693/202301/2487693-20230128093209119-1544829884.png) ![](https://i 阅读全文
posted @ 2023-01-28 09:34 jsqup 阅读(9) 评论(0) 推荐(0) 编辑
摘要: 1.#{}和${}的区别 #{} 数据类型检查: 若检测到字符串类型,就加上引号; 若检测到数值类型,就不加引号。 安全检查: 若变量的值带有引号,会对引号进行转义处理,这样可以防止sql注入。 ${} 将传入的数据直接进行sql拼接,不会加引号 可以用来表示表名select ${columns} 阅读全文
posted @ 2023-01-17 15:10 jsqup 阅读(6) 评论(0) 推荐(0) 编辑
摘要: 1.使用ServletAPI实现转发 /* 使用HttpServletRequest对象实现请求转发 */ @RequestMapping("/httpServletRequest") public void method1(HttpServletRequest request, HttpServl 阅读全文
posted @ 2023-01-14 16:54 jsqup 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 作用域范围 |对象名称|作用范围| | | | |application|整个作用范围| |session|在当前会话中有效| |request|在当前请求中有效| |page|在当前页面有效| request/session/application作用域传值 package controller; 阅读全文
posted @ 2023-01-14 16:00 jsqup 阅读(9) 评论(0) 推荐(0) 编辑
摘要: |类型|处理的类型| | | | |RequestMapping|GET/POST| |GetMapping|GET| |PostMapping|POST| 阅读全文
posted @ 2023-01-13 15:54 jsqup 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 注入集合对象 <%-- Created by IntelliJ IDEA. User: 19413 Date: 2023/1/13 Time: 15:09 To change this template use File | Settings | File Templates. --%> <%@ p 阅读全文
posted @ 2023-01-13 15:29 jsqup 阅读(13) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 33 下一页