上一页 1 2 3 4 5 6 ··· 11 下一页
摘要: 问题描述 Java 代码实现 import java.util.*; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt 阅读全文
posted @ 2022-01-20 00:45 Acx7 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Java 代码实现 import java.util.*; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt 阅读全文
posted @ 2022-01-20 00:20 Acx7 阅读(24) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Java 代码实现 import java.util.*; public class Main{ public static void main(String[] args) { Scanner in = new Scanner(System.in); int n = in.nextInt 阅读全文
posted @ 2022-01-19 23:59 Acx7 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Java 代码实现 方案一:使用 BigInteger 类直接转换。 import java.math.BigInteger; import java.util.*; public class Main{ public static void main(String[] args) { S 阅读全文
posted @ 2022-01-16 21:05 Acx7 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Java 代码实现 方案一:使用 BigInteger 类直接转换。 import java.math.BigInteger; import java.util.*; public class Main{ public static void main(String[] args) { S 阅读全文
posted @ 2022-01-16 21:04 Acx7 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 问题描述 Java 代码实现 方案一:使用 BigInteger 类直接转换。 import java.math.BigInteger; import java.util.*; public class Main{ public static void main(String[] args) { S 阅读全文
posted @ 2022-01-16 20:42 Acx7 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 代理模式 代理模式即给一个真实类提供一个代理类,该代理类代替真实类完成其功能,一般还可在代理类上添加一些真实类不具有的附加功能,通俗来讲代理模式就是我们生活中常见的中介,代理模式又可分为静态代理和动态代理。 静态代理 静态代理需要代理类和目标类实现一样的接口,一般将被代理对象组合到代理类中,然后使用 阅读全文
posted @ 2022-01-16 20:24 Acx7 阅读(49) 评论(0) 推荐(0) 编辑
摘要: UUID UUID 是通用唯一识别码(Universally Unique Identifier)的缩写。UUID 让分布式系统中的所有元素,都能有唯一的辨识信息,而不需要通过中央控制端来做辨识信息的指定。 UUID 的组成 1~8位采用系统时间,在系统时间上精确到毫秒级保证时间上的惟一性; 9~1 阅读全文
posted @ 2022-01-14 00:52 Acx7 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 请求转发 request.getRequestDispatcher(url).forward(request, response); 重定向 response.sendRedirect(url); 异同 ||请求转发|重定向| |--|--|--| |页面|跳转|跳转| |URL|不改变|改变(30 阅读全文
posted @ 2021-12-25 21:20 Acx7 阅读(53) 评论(0) 推荐(0) 编辑
摘要: 路径问题 假设当前 web 应用地址为 localhost:8080/test。 请求转发:/代表的是当前 web 站点的根目录,eg:localhost:8080/ 重定向:/代表的是当前 web 应用的根目录,eg:localhost:8080/test 举例 假设当前 web 应用地址为 lo 阅读全文
posted @ 2021-12-25 21:20 Acx7 阅读(159) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 11 下一页