
日常Bug解决
aa
棋了个怪啊_Rachel
自从厌倦于追寻,我已学会一命即中。自从一股逆风袭来,我已能抗拒八面来风驾舟而行。
展开
-
postgresql数据库“invalid byte sequence for encoding “UTF8“: 0x00”事件的经验教训
虽然已知道用replaceAll('\u0000','')可解决问题,但由于要插入多张表、每个表含多个varchar字段、插入操作由JPA实现、插入操作要批量进行等因素,程序日志内容太笼统,为判断是哪个(或哪些)表、字段造成的、以及是代码原因还是数据原因提供的帮助很少,因而过程中麻烦多多困难重重,现在将其中的经验与教训总结出来,希望对同行们有所帮助。因为浏览器、某些图形化工具在处理含有'\0'的字符串时会自动截断'\0'后面的内容,依旧无法确定是表里的哪个字段。至此,这次折磨人多日的事件终于得到解决。...转载 2022-07-27 16:09:12 · 8245 阅读 · 0 评论 -
ibatis.binding.BindingException: Invalid bound statement (not found): com.suntang.storage.mapper.Per
即在mybatis中dao接口与mapper配置文件在做映射绑定的时候出现问题,简单说,就是接口与xml要么是找不到,要么是找到了却匹配不到。分析一下该错误出现原因invalidboundstatement(notfound),这个报错算是经常遇到的错误了,问题的本质就是。究其根本还是因为xml的路径不正确,所以大家开发的时候一定要细心一点,也不要盲目的去找问题原因,要分析问题,所以最后问题解决啦!),就是自己平时在建文件夹的时候如下图这样建,导致生成的文件路径为。就是这个文件路径导致的(......原创 2022-07-20 20:13:32 · 1172 阅读 · 5 评论 -
HttpMessageNotReadableException: JSON parse error: Unexpected character (‘“‘ (code 34)): was expecti
nestedexceptioniscom.fasterxml.jackson.core.JsonParseExceptionUnexpectedcharacter('"'(code34))wasexpectingcommatoseparateObjectentriesat[Source(PushbackInputStream);line3,column6]]解决方案原因是json格式不正确,id后没加“,”,添加“,”就行。......原创 2022-07-16 16:46:26 · 2853 阅读 · 3 评论 -
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception 很详细!!!
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is com.suntang.common.exception.RRException: 用户账号已被占用] with root cause 首先验证一下三种情况是否都满足:我这里已经验证过以上三种情况了问题分析:postman报错首先手原创 2022-07-14 11:48:40 · 68892 阅读 · 1 评论 -
不建议使用sun.misc.BASE64Encoder
不建议使用sun.misc.BASE64Encoder最近在项目中用到sun.misc.BASE64Encoder包的BASE64Encoder对字符串进行编码,但是将编码后的字符串输出后发现字符串中存在换行符\r\ngoogle 原来“回车换行符(\r\n)”是在Windows才有,而Linux只有换行(\n),Mac只有回车(\r)。建议使用import org.apache.commo...转载 2020-03-04 11:06:15 · 361 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Can‘t get Kerberos realm at org.apache.hadoop.security.HadoopKe
原因:找了半天,krb5.conf,impala.keytab的路径问题!!!!!原路径: src/main/conf/krb5.conf 如图修改后的路径:绝对路径: "D:/AmyTest/test/src/conf/impala.keytab" 相对路径:/test/src/conf/impala.keytab记录一下,以备不时之需!!!!...原创 2021-12-16 18:40:20 · 2815 阅读 · 0 评论 -
租房注意事项
01必看1、采光性我觉得这个很重要,有的房子一天都是黑的,你想想下班后,呆在乌漆麻黑的房子,估计你的心情也不会好到哪里去,反正我需要阳光。2、交通便利与否距离地铁口远不远,这就会影响你的通勤和心情哈哈哈,有车就当我没说。3、安静与否距离跳舞广场、马路远不远,这个也很重要,直接关系着你的睡眠质量。4、是否西晒房子朝向如果是东西方向,就会存在太阳下山的时候,很热,深圳就是这样的,所以温度高的时候就很难受。5、是否有家具我觉得衣柜、床是基本配置的,其余家原创 2021-12-23 18:08:18 · 219 阅读 · 0 评论 -
MongoDB常用命令
Mongo命令数据库常用命令1、Help查看命令提示helpdb.help();db.yourColl.help();db.youColl.find().help();rs.help();2、切换/创建数据库use test //当创建一个集合(table)的时候会自动创建当前数据库,在这里不用分号db.createCollection(“test”)3、查询所有数据库s...原创 2020-01-15 13:06:24 · 270 阅读 · 0 评论 -
git报错:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
问题ide想要提交git 分支的时候报错Update Failed @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@...原创 2021-03-17 08:59:44 · 237 阅读 · 0 评论 -
将本地项目上传到gitee
第一次学习将本地项目上传到gitee花费了很长时间,所以我想把我通过搜索、实验的结果分享给大家,希望对大家能够有所帮助。(我的电脑是window10系统)准备工作–下载先下载git,git下载地址选择系统后,一般会自动下载,我建议把git下载到你能找到的地方,直到显示为才能继续安装,否则点击会一直显示“程序正在运行”。安装可以自己更改地址,也可以不更改,就一直next就可以。在gitee网站注册自己的账号,gitee首页进行注册地址注册账号的时候可以直接绑定邮箱,如果没有绑定邮箱,在“设置转载 2022-01-12 16:48:47 · 146 阅读 · 0 评论 -
idea查看项目git的远程仓库地址
原创 2022-01-12 17:27:46 · 2887 阅读 · 0 评论 -
第一次从GitLab clone项目到本地
第一步:生存SSH公钥1.打开Git Bash 或者CMD或者VScode或者webstorm项目目录控制台,输入命令行:ssh-keygen -t rsa -C "gitlab/git邮箱账户xx@xx.com"2. 输入key名称(可以直接回车,什么都不输入)3. 输入密码+重复密码(可以直接两个回车,什么都不输入)4.根据提示找到生成的两个文件id_rsa,id_rsa.pub5. 打开id_rsa.pub文件,复制全部内容第二步:登录GitLab网站6. 把第5...转载 2021-05-17 16:45:44 · 2023 阅读 · 0 评论 -
git 配置 SSH密钥,解决失败问题
git 配置 SSH密钥,解决失败问题为什么配置SSHgit使用https协议,每次pull、push都要输入密码,相当烦。使用ssh密钥可以省去每次都输密码。 多人协作的需要,区分权限及身份。配置步骤前提:已安装git,很简单,不多说。本地创建SSH key。使用GitHub的注册邮箱ssh-keygen -t rsa -C "your_email@youremail.com" 第一步成功后,本地~/下生成.ssh文件夹,打开其中的id_rsa.pub,复制key 进入git.原创 2020-06-11 17:09:40 · 7119 阅读 · 6 评论 -
Navicat点击菜单栏闪退问题
Navicat点击菜单栏闪退找了很久才发现原来跟有道词典的取词功能冲突了~~~关闭有道翻译软件-屏幕取词功能再打开navicat就可以正常使用了~~~晕死~原创 2020-03-31 10:23:17 · 407 阅读 · 3 评论 -
Navicat常用快捷键(都很好用!!!)
Ctrl+L:查看历史查询日志Ctrl+R:执行选中语句Ctrl+S:保存Ctrl+N:新建查询Ctrl+/:注释选中的sql语句Ctrl+W:关闭当前窗口Ctrl+D:复制当前行的SQL语句Ctrl+F:查找Ctrl+H:替换Ctrl+Tab:切换查询窗口F1:打开帮助文件,快捷键冲突的话看导航栏...原创 2021-06-03 11:17:54 · 2087 阅读 · 0 评论 -
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/Configuration
解决:降低spring boot 版本或者升级springcloud版本<groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-parent</artifactId><version>2.3.0.RELEASE</version>原创 2022-02-16 20:26:29 · 765 阅读 · 0 评论 -
使用Gson实现json转对象异常:com.google.gson.JsonSyntaxException: 2020-09-15 10:53:15
原因:传的参数有时间类型导致解析时间类型失败{"SYS_HEAD": { "RET_MSG":"OK", "RET_CODE":"2000" },"BODY": { "orderId":8163109, "status":1, "payMonety":1.0, "empNo":"00206507 "empName":"唐燦玲", "OrderNo":"OD20200915原创 2020-09-15 11:37:39 · 955 阅读 · 0 评论 -
Web server failed to start. Port 9011 was already in use.------端口号被占用
***************************APPLICATION FAILED TO START***************************Description:Web server failed to start. Port 9011 was already in use.Action:Identify and stop the process that's listening on port 9011 or configure this applicatio.原创 2020-09-24 16:49:08 · 877 阅读 · 0 评论 -
Error:Kotlin: Module was compiled with an incompatible version of Kotlin. The binary version of its
Java启动报错:Build-rebuild project之后问题解决。原创 2021-12-16 18:01:25 · 1981 阅读 · 0 评论 -
HikariPool-1 - Connection is not available, request timed out after 30011ms.
HikariCP建议配置:spring: datasource: driver-class-name: com.mysql.cj.jdbc.Driver username: root password: root url: jdbc:mysql://127.0.0.1:3306/amytang?serverTimezone=GMT%2B8&useUnicode=true&characterEncoding=utf8&rewrite..原创 2022-03-16 00:09:24 · 4122 阅读 · 1 评论 -
ApplicationContextException: Failed to start bean ‘documentationPluginsBootstrapper‘;
spring boot2.6.2整合 swagger3.0.0导致项目启动失败启动应用会报错org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NullPointerException at org.springframework.context.suppo...原创 2022-03-14 22:21:42 · 2478 阅读 · 0 评论 -
VirtualBox.错误:There was an error while executing `VBoxManage`, a CLI used by Vagrant for
在vagrant搭建环境的时候遇到了一个错误,我在vagrant up的时候出现了一个错误There was an error while executing `VBoxManage`, a CLI used by Vagrantfor controlling VirtualBox. The command and stderr is shown below._Command: ["startvm" , "1eebb5c1-fba9-4940-bceb-1a90e97fb9a9", "--typ原创 2022-03-14 13:59:14 · 1260 阅读 · 1 评论 -
SpringBoot与Swagger集成时遇到的错误:Failed to start bean ‘documentationPluginsBootstrapper‘;
【错误描述】:【解决方案】:package io.renren.config;import org.springframework.context.annotation.Configuration;import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;import org.springframework.web.servlet.config.annotation.WebMv.原创 2022-02-24 16:08:30 · 301 阅读 · 2 评论 -
Relying upon circular references is discouraged and they are prohibited by default.
解决升级 Spring Boot 2.6后,因循环引用导致启动时报错的问题Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automat原创 2022-02-24 15:59:41 · 19737 阅读 · 19 评论 -
java.lang.NullPointerException: element cannot be mapped to a null key
运行时异常:空指针!!!修改:Map<String,List<StCarIdentInfo>> map = identInfos.stream().filter(e->e.getPlaceId()!=null).collect(Collectors.groupingBy(e->e.getPlaceId()));Map<String,List<StCarIdentInfo>> map = identInfos.stream().fi原创 2022-01-22 09:56:11 · 5007 阅读 · 0 评论 -
java.lang.ClassNotFoundException: com.cloudera.impala.jdbc41.Driver 没有引入impala驱动
加上驱动即可!!!!!! <dependency> <groupId>tangtang.impala</groupId> <!-- 库名称,也可以自定义 --> <artifactId>impalajdbc41</artifactId> <!--库名称,也可以自定义--> <version>1.0...原创 2021-12-17 10:59:57 · 3323 阅读 · 0 评论 -
解决@Valid List传参无法校验的问题
亲测有效!!!!直接在 Controller 类上 加上@Validated注解,搞定!!效果如图:原创 2021-01-08 11:44:53 · 3337 阅读 · 2 评论 -
错误:Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception
Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Handler dispatch failed; nested exception is java.lang.NoSuchMethodError: org.springframework.util.StringUtils.matchesCharacter(Ljava/lang/String;C)Z] with root caus原创 2020-11-26 16:58:51 · 25236 阅读 · 4 评论