
faq
hashdog
写下疑问,记录成长
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
fastjson JSON.parseObject() 属性为null
再调用JSON.parseObject()将json字符串解析为对象时,其中的属性始终为null很有可能是你对象的无参构造方法被覆盖了原创 2021-03-18 10:25:46 · 7098 阅读 · 2 评论 -
【Python】pip安装报错Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming th
Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/numpy/ (Caused by SSLError("Can't connect to HTTPS URL because...原创 2020-10-15 16:49:34 · 4976 阅读 · 2 评论 -
Error:(1, 1) java: 需要class, interface或enum
Error:(1, 1) java: 需要class, interface或enum这个错是因为编码的问题导致的项目用什么编码,在idea右下角转成对应的编码原创 2020-09-28 15:27:02 · 1024 阅读 · 0 评论 -
irsManager) [2020-09-06 23:19:51,374] ERROR Error while renaming dir for test1-0 in log dir D:\soft\
] ERROR Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)kafka.zookeeper.ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING at kafka.zookeeper.ZooKeeperClient.$anonfun$...原创 2020-09-10 00:26:14 · 1939 阅读 · 0 评论 -
No qualifying bean of type ‘javax.sql.DataSource‘ available: more than one ‘primary‘ bean found amon
mybatis多数据报错Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'javax.sql.DataSource' available: more than one 'primary' bean found among candidates: [1DataSource, 2dataSource, 3DataSource, 4DataSourc原创 2020-08-23 14:52:01 · 1318 阅读 · 0 评论 -
【MyBatis】执行多条删除语句报语法错误java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check
主从表删除,有可能会用到一个标签,多条删除语句错误(多条语句末尾都要加分号)正确原创 2020-08-15 15:40:10 · 675 阅读 · 0 评论 -
java.lang.StackOverflowError
当子类与父类,循环调用会报次错public class Father { protected void doSomething() { System.out.println("2"); //注意这里的this在调用的实时,实际上是son的实例 this.doSomething(); System.out.println(this.getClass().getSimpleName()); } public..原创 2020-06-20 00:03:13 · 195 阅读 · 0 评论 -
IDEA启动报错:错误: 找不到或无法加载主类 com.xxx.main.CollectMain
IDEA启动main方法报错错误: 找不到或无法加载主类 com.xxx.main.CollectMainclean一下即可原创 2020-06-17 15:27:36 · 649 阅读 · 0 评论 -
Package xyz.hashdog.quanwangfuheII.job clashes with class of same name
包名与类名冲突原创 2020-06-10 16:19:36 · 3368 阅读 · 0 评论 -
【List.toArray()避免强转报错】List泛型使用List.toArray()转数组的正确操作方式
常见错误List<String> list = new ArrayList<>();list.add("你大爷");list.add("你二爷");//会报错 java.lang.ClassCastException: java.lang.Object[] cannot be cast to java.lang.String[]String[] strs= (String[]) list.toArray();//正确方式String[] strs2= list.原创 2020-06-04 15:15:37 · 1946 阅读 · 0 评论 -
el-table动态加载表头之后,横向滚动条不显示
动态表格加载完之后,添加这段代码,重新布局 this.$nextTick(()=>{ this.$refs.dataTable.doLayout(); });原创 2020-05-26 12:13:17 · 2706 阅读 · 1 评论 -
Unable to allocate 195008KB bitmaps for parallel garbage collection for the requested 6240256KB heap
内存不够了,关闭几个应用原创 2020-05-22 21:37:36 · 4780 阅读 · 0 评论 -
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1
Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1960) at xyz.hashdog.test.Test.main(Test.java:19)字符串下标越界在截取字符串的时候,需要用到变量去做加减运算,一定要保证不为负数 public sta...原创 2020-05-09 16:40:13 · 10592 阅读 · 2 评论 -
Exception in thread "main" java.lang.NumberFormatException: For input string: "66-6"
Exception in thread "main" java.lang.NumberFormatException: For input string: "66-6" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.valueOf(Integer.j.原创 2020-05-08 18:09:53 · 4135 阅读 · 0 评论 -
maven聚合工程打包报错 Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
maven聚合工程打包错误[ERROR] /J:/svn/iocp.dev/iocp/src/iocpweb-root/collection/src/main/java_roomenvironment/com/ieslab/dynamicII/config/DynamicEnvironmentReader.java:[51,22] 找不到符号 符号: 方法 setCompRoom...原创 2020-04-30 10:46:20 · 275 阅读 · 0 评论 -
mybatis报错 Cause: java.sql.SQLException: 序列号无效 ;
使用mybatis的时候报错,数据库是达梦7### Cause: java.sql.SQLException: 序列号无效; uncategorized SQLException for SQL []; SQL state [HY093]; error code [6010]; 序列号无效; nested exception is java.sql.SQLException: 序列号...原创 2020-04-29 10:00:04 · 9356 阅读 · 2 评论 -
uncategorized SQLException for SQL []; SQL state [null]; error code [0]; Error; nested exception is
mybatis报错报这个错百度一番,都是说Integer类型写成了int,不能传null我这个报错原因比较坑实体类型是String,数据库类型是int但是实体类的值是数字,按理是可以自动转换成数字入库的,但是我用的是国产达梦数据库经过调试,确定是这个问题总结:代码规范严谨的重要性,不可洒脱,最好保证实体类和数据库字段类型一致...原创 2020-03-24 17:25:41 · 34274 阅读 · 1 评论 -
springboot整合mongodb踩坑之只能获取localhost的数据(巨坑,坑死)
springboot未配置mongodb会自动采用localhost的配置搞了两个多小时未发现问题,结果打开本地的mongodb竟然发现插入数据插到这里面去了原来是我配置的层级关系错了,自己把自己坑死了改成这样就好了...原创 2020-03-18 01:42:23 · 1839 阅读 · 0 评论 -
org.springframework.dao.DuplicateKeyException: Bulk write operation error on server localhost:27017.
org.springframework.dao.DuplicateKeyException: Bulk write operation error on server localhost:27017. Write errors: [BulkWriteError{index=1, code=11000, message='E11000 duplicate key error collection: ...原创 2020-03-18 01:23:36 · 3494 阅读 · 0 评论 -
java.lang.ClassCastException: org.bson.Document cannot be cast to java.util.Collection
java.lang.ClassCastException: org.bson.Document cannot be cast to java.util.Collection at org.springframework.data.mongodb.core.convert.MappingMongoConverter.writeInternal(MappingMongoConverter.ja...原创 2020-03-18 01:13:45 · 9776 阅读 · 0 评论 -
org.hibernate.validator.constraints.NotBlank' validating type 'java.lang.Integer
在使用easypoi实现导入功能时报下错误:Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@6b1efc94]11:36:48.689 ERROR cn.afterturn.easypoi.excel.imports.ExcelImportService 25...原创 2020-03-11 11:47:19 · 2421 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Parameter 'datacenterId' not found. Available parameters
10-Mar-2020 23:56:38.459 严重 [http-nio-8081-exec-3] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [spring-dispatcher] in context with path [/iocp] threw exception [...原创 2020-03-11 00:08:56 · 574 阅读 · 0 评论 -
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
在运行时result = jedis.rpush(key, (String[])value.toArray()); 报了[Ljava.lang.Object; cannot be cast to [Ljava.lang.String;这个错后来发现是强转的问题,java中的强制类型转换只是针对单个对象的,想要偷懒将整个数组转换成另外一种类型的数组是不行的,,这和数组初始化时需要一个个来...原创 2020-03-06 12:01:35 · 15006 阅读 · 7 评论 -
org.apache.ibatis.binding.BindingException: Parameter '__frch_item_0' not found. Available parameter
mybatis批量插入list报错错误原因:写成了#{item.big_sysid}所以没从item中取到值原创 2020-03-04 21:25:19 · 1037 阅读 · 0 评论 -
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;数组强转,这么转是不行滴Object[] objects = keystr.toArray()String[] objecta = (String[])keystr.toArray();要这样...原创 2020-03-01 23:33:58 · 2277 阅读 · 0 评论 -
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyR
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2分析...原创 2020-02-28 15:16:25 · 3680 阅读 · 0 评论 -
Java中list.foreach不能使用字符串拼接
如图,不能使用String进行拼接;因为Lambda的本质实际上是匿名内部类,所以t必须是final类型(不过代码中的final可以省略),是不可以重新赋值的。可以使用 final StringBuilder str = new StringBuilder("已选择:");如图二...原创 2020-02-19 12:36:07 · 4110 阅读 · 0 评论 -
Exception in thread "JavaFX Application Thread" java.util.ConcurrentModificationException
同一个控件,进行了两次添加,改了就行了原创 2020-02-18 18:32:24 · 3248 阅读 · 0 评论 -
gojs自动布局坑点问题解决思路
gojs自动布局坑点问题解决思路目录一、需求二、难点一(自动布局有效性切换)三、难点二(自动布局连线混乱)一、需求1.用户可在拓扑图面板进行编辑2.可以通过拉取数据自动生成拓扑图3.用户可以在生成的拓扑图上二次编辑(难点1)4.拓扑图节点与连线的相关数据入库5.拉取入库的节点和连线数据可以正常展示(难点2)二、难点一(自动布局有效...原创 2020-02-18 15:16:24 · 4198 阅读 · 3 评论 -
nested exception is org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.builder.BuilderException: Parsing error was found in mapping #{item.operatType ) , ( ...原创 2020-02-15 18:16:39 · 16555 阅读 · 2 评论 -
java.net.ProtocolException: Invalid HTTP method: get at java.net.HttpURLConnection.setRequestMethod
将setRequestMethod("get")改为setRequestMethod("GET")解决原创 2020-02-14 13:42:27 · 2080 阅读 · 0 评论 -
IDEA遇到Java类文件竟然可以展开?(强迫症必看!!!)
今天遇到个傻逼问题,以为是IDEA又扯精了,搞半天是自己写错了看图,可以发现Java类文件竟然也可以展开,但是程序正常运行,强迫症的我,竟然去发blink提问,刚发出去,我就发现了端倪,赶紧把提问删了,不然都把我当傻子了你看出端倪了吗没看出来的话,看下张图,对,就是Java类名与文件名不同造成的,改成一致即可解决...原创 2020-02-13 15:43:55 · 1687 阅读 · 1 评论 -
css无效的属性值
未加单位,改为 width:400px 解决原创 2020-02-11 12:13:11 · 4093 阅读 · 0 评论 -
0 files committed, 1 file failed to commit
0 files committed, 1 file failed to commit: svn: E155011: Commit failed (details follow): svn: E155011: File 'J:\svn\iocp.dev\iocp\src\iocpweb-root\iocp\src\main\webapp\static\js\topologicalGraph_new...原创 2020-02-07 09:03:25 · 28080 阅读 · 1 评论 -
Error:java: Compilation failed: internal java compiler error
Idea遇到这种错File-->Setting...-->Build,Execution,Deployment-->Compiler-->Java Compiler 设置相应Module的target bytecode version的合适版本(跟你jkd版本一致),这里我改成1.8版本的。...原创 2020-02-05 21:54:42 · 350 阅读 · 0 评论 -
java.io.FileNotFoundException: data\downTemplate\imgTemplate\radio1.png (系统找不到指定的路径。)
问题场景: 下载world文档,通过poi-tl第三方开源模板引擎实现,第一次出现此问题的时候,以为是第三方依赖只能读取绝对路径,但是后面用new File读取项目中的图片时,又出现了该问题解决: 使用request获取webroot绝对路径总结: javaweb项目在读取webroot文件下资源时,只能使用物理路径(J:\ideaWorkspace...原创 2019-01-29 14:24:53 · 676 阅读 · 0 评论 -
org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 'xunjianjilu
记录平时遇到过的问题,这个问题并不大,只是太久没写mybatis,忘了一些细节总结:mybatis传单个String类型,可以不用@param注解,前提是xml中不含有条件表达式(when,if..标签中没有引用到该参数) 1.首先看一下方法,是一个简单的查询,参数只有一个String,印象中dao层方法只有一个string的时候,可以直接在xml中使用#{}获取 2.但是...原创 2019-01-28 19:14:35 · 54410 阅读 · 9 评论 -
Mybatis动态sql条件查询中if判断Integer的条件写法
记录遇到的问题mybatis分页查询,查询条件失效总结:当param是Integer的时候 if的条件表达式,不能有 xxx != ''1.可以看到前端传到后台的参数是0 2.条件表达式为常规写法 3.debug打印出来的sql竟然没有跟条件 4.如果参数是1,后面就有跟条件,由此判断if条件表达式判断为false 5.去掉 dainweizhuangt...原创 2019-02-01 10:07:06 · 1282 阅读 · 0 评论 -
java.util.ConcurrentModificationException
记录遇到的问题虽然这个报错是第一次遇到,但问题很简单,就只看报错就解决了总结:引用大佬的话1.报错信息 2.lists在遍历的时候,又在增加,直接锁定问题 ...原创 2019-01-31 16:59:02 · 248 阅读 · 0 评论