随笔分类 - 程序报错/BUG
摘要:报错内容如下: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".SLF4J: Defaulting to no-operation (NOP) logger implementationSLF4J: See http:/
阅读全文
摘要:解决办法: buildPath >找到对应的JRE >下面有个Access rules >Edit >Add >选择Accessble >填**
阅读全文
摘要:问题是:依赖包下载不下来 解决办法: 在终端下进入项目所在的目录用mvn compile执行即可 或者点击pom.xml,右键,maven install
阅读全文
摘要:参考: https://www.cnblogs.com/jym-sunshine/p/4758626.html 解决字符集的工具下载:http://download.oracle.com/otn/nt/instantclient/112030/instantclient-basic-nt-11.2.
阅读全文
摘要:XML不引用定时任务的配置,在web.xml引用即可,避免加载两次 <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://
阅读全文
摘要:org.hibernate.StaleStateException: Batch update returned unexpected row count from update: 0 actual row count: 0 expected: 1at org.hibernate.jdbc.Batc
阅读全文
摘要:1、Refactor this method to reduce its Cognitive Complexity from 29 to the 15 allowed. 2、Method has 15 parameters, which is greater than 7 authorized. 意
阅读全文
摘要:使用isEmpty()是出现了空指针异常NullpointException; 原来isEmpty()用来判断一个变量是否已经初始化了,因为“”和new 的时候系统都会为其分配内存,不管是否有值,当为null的时候,系统的不会为其分配内存,这是它是不存在的,如果调用isEmpty()方法时JDK根本
阅读全文
摘要:前几天,同事问了我一个问题,我告诉他用spring的定时任务解决,并给他配置了spring的定时任务。当时随便找了一个bean写了一段代码,验证定时任务正确执行后,就没再管,昨天下午,同事写代码的时候,把这段代码移到了自己特定的bean中。问题就来了,定时任务不执行了。我给他把代码的位置又换回之前的
阅读全文
摘要:spring定时任务只开启一个线程去工作也就是串行工作,定时调度任务出现阻塞导致线程终止 加上这个试试
阅读全文
摘要:ailed to collect dependencies at com.eshore:common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.eshore:common:jar:0.0.1-SNAPSHOT: Fa
阅读全文
摘要:这个错误通常是下载了子项目,没有把父项目下载下来。 子项目要依赖父项目的pom 所以只要把父pom.xml放到各个子项目的上一级就可以了 The relative path of the parent pom.xml file within the check out. If not specifi
阅读全文
摘要:如果服务端配的也是noblock=false;客户端不能改成noblock=true;
阅读全文
摘要:Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'CustomerBean' defined in class path
阅读全文
摘要:最后是控制台打印生成的结果如下:FastJson生成字符串是:{"id":"2","name":"节点1","open":true}Gson生成字符串是:{"id":"2","pId":"1","name":"节点1","open":true} 用FastJson就是少了个属性pId没有被转化出来,
阅读全文
摘要:网络是通的但对方访问丢包,改了ip地址就好了 原因可能是: 网络丢包是我们在使用ping对目站进行询问时,数据包由于各种原因在信道中丢失的现象。ping使用了ICMP回送请求与回送回答报文。ICMP回送请求报文是主机或路由器向一个特定的目的主机发出的询问,收到此s报文的机器必须给源主机发送ICMP回
阅读全文
摘要:在工作过程中,用httpclient去压测一个web api,发现压一小段时间就出现了Too many open files。实际上,HttpClient建立Socket时 ,post.releaseConnection()并没有真正关闭连接,而是将该连接提交给 MultiThreadedHttpC
阅读全文
摘要:完整的异常提示: Non-resolvable parent POM: Could not find artifact com.ecp:ecp-main:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @
阅读全文
摘要:mysql6.0里面改成新的配置方式: Exception in thread "smsNotify" java.lang.UnsupportedClassVersionError: com/mysql/cj/jdbc/Driver : Unsupported major.minor version
阅读全文
摘要:需要注意的是ComponentScan 不能扫描 org.springframework 否则会报错,要扫描指定的package才行
阅读全文