- 博客(51)
- 资源 (724)
- 收藏
- 关注
原创 安装win10 自带linux到其他盘
运行以下脚本wsl --export Ubuntu-20.04 E:\tar\Ubuntu.tarwsl --unregister Ubuntu-20.04wsl --import Ubuntu-20.04 D:\Ubuntu E:\tar\Ubuntu.tarwsl -d Ubuntu-20.04脚本说明 ,win10系统已开启linux子系统选项,并且系统安装了ubuntu系统。用wsl --list查看当前系统安装的ubuntu版本,用export导出脚本系统,unregister注销当前安
2024-08-20 18:28:41
358
1
原创 永久改变cmd编码方式
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor路径下建立autorun键,创建字符串值 chcp 65001。
2023-06-01 16:57:14
215
原创 netbeans设置JDK,红色部分为设置方法
# Licensed to the Apache Software Foundation (ASF) under one# or more contributor license agreements. See the NOTICE file# distributed with this work for additional information# regarding copyright ownership. The ASF licenses this file# to you under
2023-04-06 21:25:11
605
原创 在 CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__23.MoveNext()
pause。
2022-09-29 08:58:14
1127
原创 命令行运行javaFx ,环境jdk18
java --module-path %moudle-path% --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.graphics App
2022-07-30 20:39:31
509
原创 修改npm缓存目录
找到nodejs目录下的npmrc文件和.npmrc文件内容改成prefix=d:\nodejs\node_modules\npmcache=d:\nodejs\node_modules\npm_cache使用npm config get prefix命令,发现缓存目录已修改
2022-07-12 19:03:12
1036
原创 bundle类型的依赖添加
<plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.6</version> <extensions>tru...
2022-05-24 08:07:52
100
原创 读取中文内容编码
public static String code(String name) throws IOException{ InputStream is = new FileInputStream(name); byte[] b = new byte[3]; is.read(b); String code = "GBK"; if (b[0] == -17 && b[1] == -69 && b...
2022-03-06 11:56:36
149
原创 一个目录下有十万文件的处理
目录下的有十万文件,打开目录很慢,主动退出 _file.listFiles((dir, name) -> { File f = new File(dir, name); if (f.isFile() && f.length() > 0) { try { Files.copy(Paths.get(path), Paths.get(f.getPat
2022-02-23 10:32:33
468
原创 考试题目03
1.下面哪个流类属于面向字符的输入流(D)A BufferedWriler B. FileinputStream c.ObjectinputStream D.inputStreamReader2.Java接口的修饰符可以为(D)A private B protected C final Dabstract3.(多选题)下列关于构造方法的叙述中,错误的是(CD)A java语言规定构造方法名与类名必须相同B java语言规定构造方法没有返回值,但不同vold声明C java语言规定构造方法不
2021-10-10 10:10:45
2054
原创 java计算器
package com.app;import java.awt.BorderLayout;import static java.awt.BorderLayout.NORTH;import java.awt.FlowLayout;import static java.awt.FlowLayout.CENTER;import java.util.LinkedList;import java.util.Queue;import java.util.Stack;import javax.swing.
2021-09-12 21:48:21
83
原创 SSM框架搭建
src/main/resources/application-config.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p"
2021-06-18 18:30:49
52
原创 SSH整合
src/main/resouces/applicationContext.xml<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:context="http://www.springframework.org/sche
2021-06-18 11:22:06
95
原创 定时同步目录文件
import java.awt.GridLayout;import java.io.File;import java.util.Timer;import javax.swing.JButton;import javax.swing.JFrame;import static javax.swing.JFrame.EXIT_ON_CLOSE;import javax.swing.JTextField;public class MyTimerTask extends JFrame { pu.
2021-06-13 09:20:56
225
原创 文件工具类
public void moveFile(String path, String _path) { File file = new File(path); if (file.isDirectory()) { File[] files = file.listFiles((dir, name) -> { File f = new File(dir, name); return f...
2021-05-29 07:32:37
134
原创 读取文本域内容到文件
JTextArea area = new JTextArea(); JScrollPane scrollPane = new JScrollPane(area); add(scrollPane, BorderLayout.CENTER); JButton button = new JButton("复制"); JButton _button = new JButton("取消"); JFileChooser chooser...
2021-05-18 14:10:06
170
原创 java 7 nio复制文件代码
Path targetPath = Paths.get($file.getPath());Path sourcePath = Paths.get(files[i].getPath());Files.copy(sourcePath, targetPath, StandardCopyOption.REPLACE_EXISTING);
2021-05-14 18:14:06
95
原创 word 转 pdf
LocalOfficeManager manager = LocalOfficeManager.builder().officeHome(null).install().build();manager.start();JodConverter.convert(new File(null)).to(new File(null)).execute();officeHome 设置LibreOffice的安装目录,第一个File是Word文件,第二个File是Pdf文件...
2021-03-20 21:37:12
478
原创 maven -source 1.5
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.1</version> <configuration> <source>1.8</source> ...
2021-01-07 21:17:46
120
原创 File类的renameTo的神奇之处
该方法是可以重命名和移动文件。他还以边重命名,边移动的指定目录下。比如我移动A目录下的一个文件A1,移动到B目录下,同时改名B1File f=new File(dir,name)File $f = new File(dir1,name);File _f = new File(dir2, name);f.renameTo(_f)...
2021-01-03 21:28:15
232
原创 求出一个目录下的文件不存在于另一个目录下的文件
public static void diffFile(String srcPath, String targetPath) { File $file = new File(srcPath); File _file = new File(targetPath); File[] $files = $file.listFiles((dir, name) -> { File f = new File(dir.getPath(), n..
2020-12-12 21:07:53
109
原创 MultipartFil e单元测试使用
private void upload(String pathname,String first) throws IOException { File file=new File(pathname); FileItem fileItem = new DiskFileItem(null, Files.probeContentType(file.toPath()), false, file.getName(), (int) file.length(), file.getParentFile());.
2020-09-08 10:53:53
499
原创 java解析dom元素
public void copyNetFile() throws IOException, URISyntaxException { String pathname="D:"+File.separator+"threadDumps"; File file=new File(pathname); File[] files = file.listFiles(new FileFilter() { @Override ...
2020-09-02 00:18:05
283
原创 python同步文件
import collectionsimport osimport reimport shutilimport sysdef file_sync(src_path,dest_path): if src_path==dest_path or not os.path.isdir(src_path) or not os.path.isdir(dest_path): return dir_pa=re.compile(r"target|.mvn|.git") fi..
2020-08-30 23:09:17
255
PHP(“PHP: Hypertext Preprocessor”,超文本预处理器的字母缩写)
2023-07-20
Citrix Workspace是一款易于安装的客户端软件
2023-07-20
WinRar的RAR格式一般要比其他的ZIP格式有更高的压缩率,尤其他还提供了可选择的、针对多媒体数据的压缩算法
2022-11-11
作为异步事件驱动的 JavaScript 运行时,Node.js 旨在构建可扩展的网络应用程序。在下面的“hello world
2022-08-07
Citrix Receiver官方版是一款十分受欢迎和专业实用的电脑虚拟桌面客户端软件,Citrix Receiver官方版可以
2022-07-20
Citrix Receiver官方版是一款十分受欢迎和专业实用的电脑虚拟桌面客户端软件,Citrix Receiver官方版可以
2022-07-20
Cay S. Horstmann撰写了许多关于 C++、Java 和面向对象开发的书籍,是 Prentice-Hall 的 Co
2022-06-24
系统优化和隐私保护工具
2022-05-22
kubectl.exe
2022-04-05
kettle-neo4j-remix-8.2.0.7-719-REMIX.zip
2022-03-19
apachehttpd.exe
2022-03-19
neo4j-community-4.3.5-windows.zip
2022-03-18
gradle-7.4-bin.zip
2022-03-18
fmw_14.1.1.0.0_wls_lite_Disk1_1of1.zip
2022-03-18
pentaho-kettle-master.zip
2022-03-18
nifi-1.14.0-bin.zip
2022-03-18
nifi-toolkit-1.14.0-bin.zip
2022-03-18
nifi-1.14.0-source-release.zip
2022-03-18
consul_1.11.2_windows_amd64.zip
2022-03-18
jetty-home-11.0.5.zip
2022-03-18
nacos-2.0.4.zip
2022-03-18
PageOffice_5.3.0.1_Java.zip
2022-03-18
PLSQL Developer 13.rar
2022-03-18
rustup-init.exe
2022-03-13
OpenOffice_4.111.9808.exe
2022-03-13
xiaoyu_122679728_zffx_002.exe
2022-03-07
apache-tomcat-10.0.16-windows-x64.zip
2022-02-23
KDocs_1002_v2.14.3.exe
2022-02-23
rabbitmq-server-3.9.13.exe
2022-02-17
VirtualBox-6.1.30-r148432.msi
2022-01-31
VirtualBoxSDK-6.1.30-148432.zip
2022-01-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人