自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 记录

window命令查看端口被占、杀进程:https://www.cnblogs.com/fuxuepan/p/9525246.html

2021-01-13 20:56:04 137

转载 windows下zookeeper伪集群搭建以及遇到myid文件找不到

本文链接:https://blog.csdn.net/nlstudy/article/details/812346171.下载zookeeper压缩包,解压到三个不同文件夹zookeeper1、zookeeper2、zookeeper3文件夹打开后如下:2.找到conf文件下的zoo_sample.cfg,复制后改名称为zoo.cfg3.配置zoo.cfg(注意双斜杠,...

2019-09-15 14:09:29 720

原创 file.list遍历文件夹找出包含指定内容的文件名的几种方法记录

package com.tc.test;import org.junit.Test;import java.io.File;import java.nio.file.Paths;import java.util.ArrayList;import java.util.Arrays;import java.util.List;import java.util.stream.Coll...

2019-08-26 22:43:34 488

原创 调用静态方法不需要实例对象,为null也可以正常调用

2019-06-11 12:09:33 613

转载 A字符串 包含多少个 B字符串

/** * A字符串 包含多少个 B字符串 * @param A * @param B */ private static void testStrContains(String A, String B) {// String A="abababababab";// String B="ab";// ...

2019-06-10 21:04:55 1598

原创 输入一个正整数,倒序并去重 输出

这里没有对输入的 int数值 进行校验 /** * 倒序 去重 一个 int 如 12244589 输出:985421 */ private static void testDaoxu() { Scanner sc= new Scanner(System.in); int num=sc.nextInt(); S...

2019-06-10 21:02:26 1870

原创 Caused by: java.lang.ClassNotFoundException: org.apache.http.ConnectionReuseStrategy

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/http/ConnectionReuseStrategy    at org.apache.http.impl.client.HttpClients.createDefault(HttpClients.java:56)Caused by: java.lan...

2018-08-28 09:16:17 4079

转载 解决maven项目上有红叉,Cannot change version of project facet Dynamic web module to 2.5

解决maven项目上有红叉,Cannot change version of project facet Dynamic web module to 2.52015年12月21日 17:22:22 阅读数:2786更多个人分类: Maven版权声明:本文为博主原创文章,转载请注明出处。 https://blog.csdn.net/u014639186/article/details/5...

2018-08-24 17:11:40 199

原创 Multiple annotations found at this line: - schema_reference.4: Failed to read schema document

Multiple annotations found at this line:    - schema_reference.4: Failed to read schema document 'http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd', because 1) could...

2018-08-20 16:23:36 2320

原创 异常错误:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.c

异常错误:Loading class `com.mysql.jdbc.Driver'. This is deprecated. The new driver class is `com.mysql.cj.jdbc.Driver'. The driver is automatically registered via the SPI and manual loading of the driver ...

2018-08-16 08:59:17 6383 2

转载 eclipse里找不到com.sun.image.codec.jpeg.JPEGCodecimport与JPEGImageEncoder包和 import sun.misc.BASE64...

在Eclipse中处理图片,需要引入两个包:import com.sun.image.codec.jpeg.JPEGCodec;import com.sun.image.codec.jpeg.JPEGImageEncoder; base64找不到下面连个jar包也可以解决import sun.misc.BASE64Decoder;import sun.misc.BASE64En...

2018-08-14 16:04:31 509

转载 Java读取Properties文件

相信对于一名JAVA开发者开说properties文件一定再熟悉不过了,比如一下配置:config.properties会经常存放一些系统常量,版本号,路径之类的 database.properties存放数据库的连接参数 log4j.properties 日志的一些基本配置 redis.properties 缓存数据库的一些配置当然前缀是根据用能自行定义的,一般来说文件的内容的格式是...

2018-08-13 22:01:25 169

原创 解决: The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone

Caused by: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value '???ú±ê×??±??' is unrecognized or represents more than one time zone. You must configure either the s...

2018-08-13 20:48:17 664

转载 文件上传和下载

文件上传和下载  在Web应用系统开发中,文件上传和下载功能是非常常用的功能,今天来讲一下JavaWeb中的文件上传和下载功能的实现。  对于文件上传,浏览器在上传的过程中是将文件以流的形式提交到服务器端的,如果直接使用Servlet获取上传文件的输入流然后再解析里面的请求参数是比较麻烦,所以一般选择采用apache的开源工具common-fileupload这个文件上传组件。这个comm...

2018-08-13 10:29:10 146

原创 MAC+appium自动化测试

 参考地址:https://www.cnblogs.com/we8fans/p/7384291.htmlMac+appium:https://blog.csdn.net/u011517841/article/details/54923872 Mac os虚拟:https://jingyan.baidu.com/article/c74d6000b3ca190f6a595d37.htm...

2018-08-13 10:27:43 814

原创 中文 Appium API 文档

该文档是Testerhome官方翻译的源地址:https://github.com/appium/appium/tree/master/docs/cn官方网站上的:http://appium.io/slate/cn/master/?ruby#about-appium 中文Appium API 文档 第一章:关于appium1.1 appium客户端客户端类库列表及A...

2018-08-13 10:25:49 1445

原创 Eclipse运行JSP出现A full JDK (not just JRE) is required 异常

工程使用的是IDE的jre,虽然jdk环境变量都是配好的。最好的解决方案还是 在Window-->preferences-->Java-->Installed JREs下,把jre home 改为jdk下的jre,然后应用ok,或者之后再重启Eclipse就好了。

2017-04-09 19:48:53 1028

转载 log4j.properties详解与例子 转载自新浪博主-susaml

log4j.properties详解与例子在项目中的classes 中新建立一个log4j.properties文件即可 在实际编程时,要使Log4j真正在系统中运行事先还要对配置文件进行定义。定义步骤就是对Logger、Appender及Layout的分别使用。Log4j支持两种配置文件格式,一种是XML格式的文件,一种是java properties(k

2017-04-09 13:35:26 794

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除