
报错及处理
记录报错及处理
__sai_
写作是为了对抗时间的流逝和遗忘。
展开
-
记录一下遇到报错
遇到报错还是不是很熟练,看到报错就容易慌,记录一下解决报错的过程做项目遇到报错这里只知道错误在templates//site/discuss-detail.html这个文件里整个报错页面非常长,不要慌,往下翻可以看到报错具体在该文件的哪个地方这两个说的是同一行,再往下offset这个变量有问题,是我写错了CTRL+F在该文件里搜索offset改过来之后再运行就好啦!以后遇到报错不要怕哦!...原创 2021-12-02 12:48:48 · 267 阅读 · 0 评论 -
springboot整合MyBatis报错:Operand should contain 1 column(s)
<select id="selectByTicket" resultType="LoginTicket"> select (id,user_id,ticket,status,expired) from login_ticket where ticket = #{ticket} </select>报错原因select后面不要括号<select id="selectByTicket" res原创 2021-11-23 11:07:39 · 479 阅读 · 0 评论 -
解决fatal: unable to access ‘https://github.com/google/googletest/‘: Failed to connect to github.com
将https改成git原创 2021-11-16 16:23:21 · 1970 阅读 · 0 评论 -
SpringBoot整合MyBatis报错org.springframework.jdbc.BadSqlGrammarException:Column count doesn‘t match valu
报错信息org.springframework.jdbc.BadSqlGrammarException: ### Error updating database. Cause: java.sql.SQLException: Column count doesn't match value count at row 1### The error may exist in file [D:\code\community\target\classes\mapper\user-mapper.xml]###原创 2021-11-12 21:59:28 · 816 阅读 · 0 评论 -
SpringBoot整合MyBatis报错rror creating bean with name ‘userMapper‘ defined in file
报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'userMapper' defined in file [D:\code\community\target\classes\com\nowcoder\community\dao\UserMapper.class]: Unsatisfied dependency expressed through bean pr原创 2021-11-12 21:17:48 · 11215 阅读 · 4 评论 -
【SpringBoot】报错Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded dat
报错信息Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.2021-11-12 18:46:06.020 ERROR 14996 --- [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter : ***************************APPLIC原创 2021-11-12 18:52:05 · 712 阅读 · 0 评论 -
输入的英文字母隔得很开
问题文章写得好好的突然输入的英文字母隔得很开解决Shift+空格好啦!原创 2021-11-06 19:51:21 · 782 阅读 · 0 评论 -
【matlab问题及原因】散点图映射到灰度图,imshow()出来图是倒的
问题我有一个散点图,想投影到灰度图显示出来,结果imshow()出来图是倒的代码如下:x = linspace(0,3*pi,200);y = cos(x) + rand(1,200); figure;scatter(x,y);pic=zeros(150,200);[x_nml,PSX] = mapminmax(x,1,200) ;x_nml_rnd=round(x_nml);[y_nml,PSX] = mapminmax(y,1,150) ;y_nml_rnd=round(y_n原创 2021-11-01 10:48:16 · 754 阅读 · 0 评论 -
leetcode报错reached end of file while parsing
原因:少了一个大括号,补上就行了原创 2021-10-09 19:57:27 · 2185 阅读 · 0 评论 -
leetcode报错error: cannot find symbol [in __Driver__.java]
报错:原因:两道题解法类似,我直接把前一道粘过来改了一下,结果主函数名字不一样导致编译出错。把主函数改过来就好了改为:原创 2021-09-29 11:20:52 · 5987 阅读 · 0 评论 -
您尚未结束您的合并(存在 MERGE_HEAD)。 请在合并前先提交您的修改。
合并时退出了终端,再合并就出错:您尚未结束您的合并(存在 MERGE_HEAD)。 请在合并前先提交您的修改。解决办法:git merge --abortgit reset --merge之后再git merge就行了原创 2021-09-28 17:51:48 · 6817 阅读 · 0 评论 -
std::set<>不允许使用限定名
std::set<seg> _stored_segs = {};报错:解决方案:加上头文件#include<set>原创 2021-09-28 11:52:26 · 2695 阅读 · 0 评论 -
【Git】clone时 fatal: repository ‘xxx‘ not found
我的链接用的是上图的红圈后加.git,正确链接应该是黄圈原创 2021-09-27 17:15:03 · 440 阅读 · 0 评论 -
【Kafka】Timeout expired while fetching topic metadata
Spring启动报错:Timeout expired while fetching topic metadata参考链接:https://blog.youkuaiyun.com/qq_39595769/article/details/118419407找到kafka 的server.properties 文件Ctrl+F找到advertised 没有的话添加一个advertised.listeners=PLAINTEXT://当前服务器的ip:9092我写的是advertised.listeners=PL原创 2021-09-25 19:49:57 · 3286 阅读 · 1 评论 -
localhost 重定向次数过多。
启动Spring项目时遇到错误:清除Cookie也没用,打开项目输出台:### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Public Key Retrieval i原创 2021-09-17 21:05:52 · 1615 阅读 · 0 评论 -
【报错】The Tomcat connector configured to listen on port 8080 failed to start.
8080端口被占了cmd打开命令行窗口查看所有端口和PID:netstat -ano找到对应的进程: tasklist | findstr "14648"杀掉该进程 : taskkill /f /t /im java.exe或者 tasklist /f /pid 14648再启动就成功了原创 2021-08-26 16:40:19 · 116 阅读 · 0 评论 -
【优快云】已发布的文章,再修改时要及时保存
已发布的文章,再修改时要及时保存,页面不会再自动保存了如果不及时保存,页面休眠之后再刷新,修改就无了。。。。。原创 2021-08-06 09:57:10 · 835 阅读 · 1 评论 -
org.springframework.mail.MailAuthenticationException: Authentication failed; nested exception is jav
参考:https://blog.youkuaiyun.com/younha66/article/details/830902691、检查自己邮箱是否开通pop3/smtp服务。2、程序中所填的邮箱密码是否为开通pop3/smtp服务时所给的授权码。原创 2021-08-05 21:33:27 · 728 阅读 · 0 评论 -
【Git】 ! [rejected] master -> master (fetch first) error: failed to push some refs to
! [rejected] master -> master (fetch first)error: failed to push some refs to 'https://gitee.com/uamaa/spring-boot-nowcoder.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually ca.原创 2021-08-05 18:31:38 · 820 阅读 · 0 评论 -
【spring boot】Error java: 程序包xxx不存在
明明有,怎么就不存在了呢?删除target整个目录,再重新编译运行原创 2021-08-05 16:08:53 · 393 阅读 · 0 评论 -
java: 错误: 无效的源发行版:12
改成自己电脑上的Java版本(我的是8)原创 2021-08-05 14:13:23 · 335 阅读 · 0 评论 -
电脑声音太小,安装音量提升插件
右上角选一款自己喜欢的原创 2021-08-04 19:08:50 · 2319 阅读 · 0 评论 -
【优快云】去掉优快云发表博客时的水印
_ __ __ _ \ \ \ \( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .原创 2021-08-02 17:36:53 · 389 阅读 · 0 评论 -
【maven】创建项目不成功:Error resolving version for plugin ‘org.apache.maven.plugins:maven-archetype-plugin‘
试了很多方法都没解决,于是把与maven相关的maven解压目录、user/.m2目录(如下图)全部删了,重新下载解压maven,配置镜像仓库<mirror> <id>alimaven</id> <name>aliyun maven</name> <url> http://maven.aliyun.com/nexus/content/groups/public/ </url>原创 2021-08-02 12:56:34 · 4102 阅读 · 3 评论 -
【虚拟机】打开虚拟机,物理机自动重启
遇事不决就修复!注意不能在控制面板里修复,因为修复过程中某些文件需要管理员权限关闭VM找到之间安装VM时的安装向导右键-以管理员身份运行修复好了重启一下,就正常啦!原创 2021-07-08 10:17:44 · 12195 阅读 · 2 评论 -
【虚拟机】无法连接虚拟设备 sata0:0,因为主机上没有相应的设备。 您要在每次开启此虚拟机时都尝试连接此虚拟设备吗?
不知道为什么我有两个CD/DVD将第二个CD/DVD的勾勾去掉,问题就解决了原创 2021-05-12 22:06:55 · 8729 阅读 · 0 评论