- 博客(50)
- 资源 (724)
- 收藏
- 关注
原创 永久改变cmd编码方式
计算机\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor路径下建立autorun键,创建字符串值 chcp 65001。
2023-06-01 16:57:14 152
原创 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 511
原创 在 CommunityInstaller.InstallWorkflow.<DoProcessAsync>d__23.MoveNext()
pause。
2022-09-29 08:58:14 773
原创 命令行运行javaFx ,环境jdk18
java --module-path %moudle-path% --add-modules javafx.controls,javafx.fxml,javafx.base,javafx.graphics App
2022-07-30 20:39:31 416
原创 修改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 957
原创 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 67
原创 读取中文内容编码
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 120
原创 一个目录下有十万文件的处理
目录下的有十万文件,打开目录很慢,主动退出 _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 351
原创 考试题目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 1897
原创 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 54
原创 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 36
原创 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 71
原创 定时同步目录文件
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 150
原创 文件工具类
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 97
原创 读取文本域内容到文件
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 135
原创 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 72
原创 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 300
原创 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 87
原创 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 173
原创 求出一个目录下的文件不存在于另一个目录下的文件
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 76
原创 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 422
原创 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 253
原创 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 193
原创 查询各门成绩大于等于80的学生
学生表 sno name 001 张三 002 李四 003 王五 课程表 cno name c01 数据结构 c02 操作系统 c03 计算机组成原理 c04 网络基础 成绩表 sno cno score 001 c01 80.00 001 c02 85.00 001 ...
2020-07-22 12:40:58 2616 1
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
virtualbox-6.1_6.1.30-148432_Ubuntu_eoan_amd64.deb
2021-12-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人