上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 44 下一页
摘要: ​ `Runtime.getRuntime().exec()` 是Java中的一个方法,可以在Java程序中执行外部程序。这个方法返回一个 `Process` 对象,可以用于控制和查看执行的外部程序。 `exec()` 方法有多个重载版本,可以传递不同的参数来控制执行的外部程序。例如: import 阅读全文
posted @ 2023-06-14 16:57 CodeWhisperer001 阅读(142) 评论(0) 推荐(0)
摘要: Java 中可以使用 Double 类中的静态方法 parseDouble() 将一个字符串转换为 double 类型的数值。用法如下: String str = "3.14"; double number = Double.parseDouble(str); 在上述代码中,我们首先定义一个字符串  阅读全文
posted @ 2023-06-13 16:41 CodeWhisperer001 阅读(175) 评论(0) 推荐(0)
摘要: ​ 使用git获取github上代码时报错:OpenSSL SSL_read: Connection was reset, errno 10054 (此时又必须开着vpn才能访问到github) 参考网上的回答,成功解决问题: 修改设置,解除ssl验证git config --global http 阅读全文
posted @ 2023-06-10 12:51 CodeWhisperer001 阅读(63) 评论(0) 推荐(0)
摘要: ​ 2023-06-10 11:04:13.778 WARN 22452 [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelli 阅读全文
posted @ 2023-06-10 12:45 CodeWhisperer001 阅读(400) 评论(0) 推荐(0)
摘要: SpringBootServletInitializer 是一个 Spring Boot 提供的用于配置 Servlet 初始化器的类。它继承自 Spring 的 SpringServletContainerInitializer 类,实现了 WebApplicationInitializer 接口 阅读全文
posted @ 2023-06-08 17:51 CodeWhisperer001 阅读(366) 评论(0) 推荐(0)
摘要: ​ 对于两种变量的交换,我发现四种方法,下面我用Java来演示一下。 1.利用第三个变量交换数值,简单的方法。 (代码演示一下) class TestEV 2 //创建一个类 3 { 4 public static void main(String[]args) 5 { 6 int x =5,y=1 阅读全文
posted @ 2023-06-05 15:53 CodeWhisperer001 阅读(69) 评论(0) 推荐(0)
摘要: ​ HttpClientUtil是Java中用于发送HTTP请求的工具类,它是基于Apache HttpClient实现的。下面是一个示例代码: import org.apache.http.HttpEntity; import org.apache.http.client.entity.UrlEn 阅读全文
posted @ 2023-06-04 19:05 CodeWhisperer001 阅读(226) 评论(0) 推荐(0)
摘要: ​ HttpClientUtil 包含get和post方法。 发送HttpPost或HttpGet请求一共三个步骤: 1、创建CloseableHttpClient对象,用于执行excute方法 2、创建HttpPost或者HttpGet请求对象 3、执行请求,判断返回状态,接收响应对象 publi 阅读全文
posted @ 2023-06-04 18:45 CodeWhisperer001 阅读(177) 评论(0) 推荐(0)
摘要: ​ 1. 复现问题 drawio是免费的画图神器,因而,今天尝试从github上下载drawio,如下图所示: 复制下载地址到git bash中,却报出如下错误: 即fatal: unable to access 'https://github.com/jgraph/drawio-desktop.g 阅读全文
posted @ 2023-06-02 10:32 CodeWhisperer001 阅读(974) 评论(0) 推荐(0)
摘要: ​ IDE 中登录 Github 报错 Invalid authentication data. 404 Not Found-Not Found. 一、方法一 使用token令牌进行身份验证(推荐) 相对于使用账号密码,token令牌是一种更安全的身份验证方式。 1、进入Github的token管理 阅读全文
posted @ 2023-06-02 10:27 CodeWhisperer001 阅读(238) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 44 下一页