会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
XYu1230
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
2025年1月10日
java多线程 -2025/1/10
摘要: Java 提供了三种创建线程的方法: 通过实现 Runnable 接口; 通过继承 Thread 类本身; 通过 Callable 和 Future 创建线程。 通过实现 Runnable 接口; package Java多线程; class RunnableDemo implements Runn
阅读全文
posted @ 2025-01-10 22:51 XYu1230
阅读(33)
评论(0)
推荐(0)
2025年1月3日
java反射 -2025/1/3
摘要: 以下是 java.lang.reflect 包中的主要类和接口的详细介绍: Class 类 功能:表示类的对象,提供了获取类信息的方法,如字段、方法、构造函数等。 主要方法: getFields():获取所有公共字段。 getDeclaredFields():获取所有声明的字段,包括私有字段。 ge
阅读全文
posted @ 2025-01-03 22:48 XYu1230
阅读(35)
评论(0)
推荐(0)
IO流应用 -2025/1/2
摘要: 拷贝文件夹 private static void copydir(File src, File dest) throws IOException { dest.mkdirs(); File[] files = src.listFiles(); for (File file : files) { i
阅读全文
posted @ 2025-01-03 20:42 XYu1230
阅读(16)
评论(0)
推荐(0)
JSON -2024/11/2
摘要: JSON 本质就是一个字符串 JSON 串的键要求必须使用双引号括起来,而值根据要表示的类型确定 导入依赖 <!-- https://mvnrepository.com/artifact/taglibs/standard --> <dependency> <groupId>taglibs</grou
阅读全文
posted @ 2025-01-03 20:42 XYu1230
阅读(18)
评论(0)
推荐(0)
FileReader & FileWrite - 2024/1/3
摘要: FileReader 构造方法 FileReader(File file): 创建一个新的 FileReader ,给定要读取的File对象。 FileReader(String fileName): 创建一个新的 FileReader ,给定要读取的文件的名称。 读取字符数据 读取字符:read方
阅读全文
posted @ 2025-01-03 20:42 XYu1230
阅读(29)
评论(0)
推荐(0)
2025年1月1日
DI入门 -2025/1/1
摘要: applicationContext.xml <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/
阅读全文
posted @ 2025-01-01 22:49 XYu1230
阅读(13)
评论(0)
推荐(0)
2024年12月30日
初识Spring -2024/12/30
摘要: Spring优点 Spring Framework Core Container:核心容器 AOP:面向切面编程 Aspects: AOP思想实现 Data Access :数据访问 Data Integration: 数据集成 IoC,IoC容器,Bean,DI 导入依赖 <dependency>
阅读全文
posted @ 2024-12-30 21:06 XYu1230
阅读(23)
评论(0)
推荐(0)
2024年12月20日
文件操作 -2024/12/19
摘要: 一些对文件的操作 package TestCode5; import java.io.File; import java.io.IOException; public class File_Test1 { public static void main(String[] args) throws I
阅读全文
posted @ 2024-12-20 23:03 XYu1230
阅读(14)
评论(0)
推荐(0)
java网络爬虫 -2024/12/20
摘要: 借用maven项目,引入jsuop爬虫坐标 <dependency> <groupId>org.jsoup</groupId> <artifactId>jsoup</artifactId> <version>1.10.2</version> </dependency> 爬取网络小说代码 packag
阅读全文
posted @ 2024-12-20 22:52 XYu1230
阅读(64)
评论(0)
推荐(0)
2024年12月8日
实现验证码登录 -2024/12/8
摘要: 预览: 前端代码 让图片src = 产生验证码图片的servlet servlet代码 public void checkCode(HttpServletRequest request, HttpServletResponse response) throws IOException { Servl
阅读全文
posted @ 2024-12-08 18:38 XYu1230
阅读(22)
评论(0)
推荐(0)
上一页
1
···
5
6
7
8
9
10
11
12
13
14
下一页
公告