上班坐下来没多久,接同事电话说有两台mysql服务器无法访问,其中这两台服务器是mycat服务器+MySQL服务器,具体处理过程如下: 一.错误信息 错误信息01: :: ::, [INFO ][$_NIOREACTOR-3-RW] close connection,reason:Bad: java.lang.OutOfMemoryError: Unable bytes ,MySQLConnection [id=6173, lastTime=1525917654 250, user=userna…
WARN hdfs.DFSClient: Caught exception java.lang.InterruptedException 而且日志中没有错误. 官网语句:$ bin/hdfs dfs -put etc/hadoop input 出错语句:$ bin/hdfs dfs -put etc/hadoop /data/hadoop-2.7.3/hdfs 原来是input目录没有按照官网: $ .bin/hdfs dfs -mkdir /user $ .bin/hdfs dfs -mkdi…
maven install 报错 org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: nulljava.lang.reflect.InvocationTargetException at sun.reflect.…
spring boot 前台GET请求,传递时间类型的字符串,后台无法解析,报错:Failed to convert from type [java.lang.String] to type [java.util.Date] 而POST请求,传入时间类型字符串,后台是可以解析成Date类型的. 出现这个错误,在需要接受Date类型的字符串参数的controller层中,加入: @InitBinder public void initBinder(WebDataBinder binder) { S…
package com.model; // Generated 2016-10-27 14:02:17 by Hibernate Tools 4.3.1.Final /** * CmDept generated by hbm2java */ public class CmDept/* implements java.io.Serializable */{ private String id; private String deptName; public CmDept() { } public…
具体错误: No qualifying bean of type [java.lang.String] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {} 原因: 1.对应要注入的实现类没有 加注解,如dao层 @Repository  如service层  @Service 2."Y…
在windows中的intellij中运行wordcount程序,控制台输出以下报错 在Intellij编辑器中解决办法:本地重新创建NativeIO类,修改一个方法返回值,然后用新建的NativeIO类覆盖源码中的NativeIO类.下面会展示.首先按2次shift,找到NativeIO,然后选择 download resource下载源码 然后在项目的java目录下重建一个NativeIO类,用于覆盖该源码,ctrl+A选中NativeIO源码,覆盖掉在java目录下新建的NativeIO类…
自己建了一个实体类 public class MissPoint implements Serializable{ private static final long serialVersionUID = -3623219494524321164L; /*** 时间*/ private String date; /*** 酒店数 */ private Integer count; /*** 酒店id*/ private List<Integer> hotelList; /**需要查询的时间**…
Failed to convert value of type 'java.lang.String' to required type 'java.util.Date' 首先这个错误的意思是 前台页面传递在string类型的时间数据,比如'2020-05-31 10:00:00' 后台使用Date类型去接收,但是报错了. 解决方法: 要解决这个问题其实很简单, 在接收的字段上面,添加下面的注解 就可以了 @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss"…