![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
java
Tie_007
这个作者很懒,什么都没留下…
展开
-
log4j.properties详解与例子 转载自新浪博主-susaml
log4j.properties详解与例子在项目中的classes 中新建立一个log4j.properties文件即可 在实际编程时,要使Log4j真正在系统中运行事先还要对配置文件进行定义。定义步骤就是对Logger、Appender及Layout的分别使用。Log4j支持两种配置文件格式,一种是XML格式的文件,一种是java properties(k转载 2017-04-09 13:35:26 · 801 阅读 · 0 评论 -
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 · 506 阅读 · 0 评论 -
调用静态方法不需要实例对象,为null也可以正常调用
原创 2019-06-11 12:09:33 · 624 阅读 · 0 评论 -
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 · 1612 阅读 · 0 评论 -
输入一个正整数,倒序并去重 输出
这里没有对输入的 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 · 1883 阅读 · 0 评论 -
解决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 · 208 阅读 · 0 评论 -
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 · 4135 阅读 · 0 评论 -
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 · 2333 阅读 · 0 评论 -
异常错误: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 · 6415 阅读 · 2 评论 -
Java读取Properties文件
相信对于一名JAVA开发者开说properties文件一定再熟悉不过了,比如一下配置:config.properties会经常存放一些系统常量,版本号,路径之类的 database.properties存放数据库的连接参数 log4j.properties 日志的一些基本配置 redis.properties 缓存数据库的一些配置当然前缀是根据用能自行定义的,一般来说文件的内容的格式是...转载 2018-08-13 22:01:25 · 179 阅读 · 0 评论 -
解决: 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 · 673 阅读 · 0 评论 -
文件上传和下载
文件上传和下载 在Web应用系统开发中,文件上传和下载功能是非常常用的功能,今天来讲一下JavaWeb中的文件上传和下载功能的实现。 对于文件上传,浏览器在上传的过程中是将文件以流的形式提交到服务器端的,如果直接使用Servlet获取上传文件的输入流然后再解析里面的请求参数是比较麻烦,所以一般选择采用apache的开源工具common-fileupload这个文件上传组件。这个comm...转载 2018-08-13 10:29:10 · 151 阅读 · 0 评论 -
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 · 513 阅读 · 0 评论 -
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 · 1040 阅读 · 0 评论 -
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 · 737 阅读 · 0 评论