![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
常见错误及解决方法
笨菜先飞
菜鸟的路上越走越远
展开
-
Idea上使用git未保存代码切换分支导致代码丢失的解决方法
Idea上使用git未保存代码切换分支导致代码丢失的解决方法使用git时不小心切换分支导致代码丢失版本控制:git原因:checkout到master分支失败,根据网络提示执行了git stash命令,导致再切回当前分支,未commit的代码丢失查询说无法挽救了,但是通过不断查找终于找到了找回方法IDEA可以恢复本地未提交的代码解决方法:通过idea的Local History 查找步骤 : 右击工程 - Local History - Show History - 通过左侧的历原创 2020-10-17 21:07:34 · 10883 阅读 · 14 评论 -
关于SpringMVC报错“More than one fragment with the name [org_apache_tomcat_websocket] was found. This is”
springMVC项目启动时报错java.lang.IllegalStateException: Error starting child Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[]] Caused by: java.lang.IllegalArgum原创 2020-09-23 16:50:22 · 5119 阅读 · 2 评论 -
application.yml文件注释中文乱码问题(Springboot)
application.yml文件注释中文乱码问题(Springboot)将File Encoding中画红色框的地方改为UTF-8或者按照其提示进行,选择前面两个GBK格式即可原创 2020-08-04 14:26:14 · 4164 阅读 · 0 评论 -
HTTP状态码(41种)
HTTP41种状态码HTTP状态码表示客户端HTTP请求的返回结果、标记服务器端的处理是否正常或者是出现的错误,能够根据返回的状态码判断请求是否得到正确的处理很重要。当浏览者访问一个网页时,浏览者的浏览器会向网页所在服务器发出请求。当浏览器接收并显示网页前,此网页所在的服务器会返回一个包含HTTP状态码的信息头(server header)用以响应浏览器的请求。HTTP状态码的英文为HTTP Status Code。下面是常见的HTTP状态码:200 - 请求成功301 - 资源(网页等)被永转载 2020-09-04 17:19:19 · 525 阅读 · 1 评论 -
MySql数据库delete数据时,表不能使用别名
MySql数据库delete数据时,表不能使用别名应用mysql数据库使用delete操作时:delete from myschool.`result` r where r.subjectNo in ( select s2.subjectNo from myschool.subject s2 where s2.teacherID =( select t.teacherID from myschool.teacher t where t.teacherName ='叶平') );原创 2020-08-29 08:59:42 · 477 阅读 · 0 评论 -
Springboot开发中碰到的一些报错及解决方法
Springboot开发中碰到的一些报错及解决方法1、使用Generator碰到的一些报错The server time zone value ‘Öйú±ê׼ʱ¼ä’ is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a mor原创 2020-08-11 11:40:09 · 963 阅读 · 0 评论