Bug-list
-玫瑰少年-
别管,拼!
展开
-
mysql中的unsigned是什么意思
添加链接描述转载 2020-12-29 09:52:37 · 555 阅读 · 0 评论 -
Your local changes would be overwritten by merge. Commit, stash or revert them to proceed.
添加链接描述转载 2020-12-29 09:08:11 · 92 阅读 · 0 评论 -
关于使用idea工具debug时,断点颜色由红色变成灰色
关于使用idea工具debug时,断点颜色由红色变成灰色转载 2020-12-12 11:04:17 · 1172 阅读 · 0 评论 -
JSON parse error: Cannot deserialize instance of `java.util.ArrayList` out of START_OBJECT token; ne
JSON parse error: Cannot deserialize instance of java.util.ArrayList out of START_OBJECT token; nested exception is com.fasterxml.jackson.databind.exc.MismatchedInputException: Cannot deserialize instance of java.util.ArrayList out of START_OBJECT …其实就是js原创 2020-12-07 20:32:10 · 15766 阅读 · 0 评论 -
Merge branch ‘dev’ of .....
遇到这种问题重新commit就好了原创 2020-08-02 23:30:40 · 4803 阅读 · 1 评论 -
com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://localho
2020-08-02 12:08:20.879 ERROR 23852 --- [reate-862840684] com.alibaba.druid.pool.DruidDataSource : create connection SQLException, url: jdbc:mysql://localhost:3306/cskaoyanmall?useSSL=false&useUnicode=true&characterEncoding=utf-8&allowMultiQ.原创 2020-08-02 12:15:36 · 8911 阅读 · 2 评论 -
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springfr
严重: Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter’: Cannot create inner bean ‘(inner bean)#53eb64’...原创 2020-07-23 23:22:07 · 674 阅读 · 0 评论 -
IDEA在debug时候出错:Source code does not match the bytecode
会发现打断点的那行代码会进入但是不会标蓝,我测试了半天以为程序没有执行到这行代码。后来在Maven中clean后重新compile就好了。原创 2020-07-22 11:58:29 · 5449 阅读 · 0 评论 -
常犯的错误:找不到文件
找不到文件homework02.jsp然后去编译目录下一看,确实没有这个文件,手动导入即可。复制文件的时候注意复制完的文件有的时候idea不会自动编译要去检查 war exploded的output path(target/artifactId-version) 文件是否有编译过去如果没有编译过去,就删除掉重新启动,让他重新编译 → 如果还没有编译过去,手动复制粘贴过去...原创 2020-07-21 16:34:11 · 253 阅读 · 0 评论 -
No converter found for return value of type: class com.cskaoyan.homework03.bean.Student
错误为没有该类型值的转换器,但是@responseBody注解会自动将返回数据封装成json格式,前台接收不到json对象,应该为json包版本冲突问题。于是我导入了Homework07的相关依赖:还是报错?通过查找资料发现,处理json对象的类,数据必须要有相关的get和set方法,而我的Student类没写set和get方法。Student:package com.cskaoyan.homework03.bean;import lombok.AllArgsConstructor;i.原创 2020-07-21 15:43:02 · 146 阅读 · 0 评论 -
javax.servlet.ServletException: Circular view path [hello]: would dispatch back to the current handl
原因是没有配置viewResolver,访问的是没有加前缀和后缀的地址。week_16_day01_SpringMVC02文章中代码出现的错误。原创 2020-07-21 09:00:14 · 406 阅读 · 0 评论 -
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean wit
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘accountDaoImpl’: Unsatisfied dependency expressed through method ‘setJdbcTemplate’ parameter 0; nested exception is org.springframework.beans.factor原创 2020-07-18 08:45:23 · 20155 阅读 · 1 评论 -
FileNotFoundException、Failed to load ApplicationContext的解决方案
在使用idea过程中经常会遇到的一个问题idea的bug你复制文件进到idea中,有的时候没有编译 → FileNotFoundException怎么办?1、target下的classes删除掉,重新运行2、build下rebuild你的project3、手动编译进去 → 就是复制文件到target下的classes中...原创 2020-07-17 19:08:18 · 356 阅读 · 0 评论 -
Annotation type expected
已经有了Junit的依赖,仍然会报错。改一下类名就不报错了,可以把类名Test改成MyTest。原创 2020-07-16 08:07:16 · 7974 阅读 · 4 评论 -
week14_day07_正则表达式&&事务&&ThreadLocal
正则表达式:概念:正(确的)(规)则表达式,又称规则表达式。(英语:Regular Expression,在代码中常简写为regex、regexp或RE),计算机科学的一个概念。作用:正则表通常被用来判断、检索、替换那些符合某个模式(规则)的文本。入门案例:判断输入的数字是否是六位数字。package regex;import java.util.Scanner;/** * @author shihao * @create 2020-07-12 9:04 */public cl原创 2020-07-12 22:17:55 · 234 阅读 · 0 评论 -
week14_day06_Project1_day08
java.sql.SQLException: Wrong number of parameters: expected 0, was given 1 Query: select id, specName, stockNum, unitPrice from spec where goodsId = ? Parameters: [22]报错的意思是:期待收到0个参数,你却给了1个参数仔细一看: select id, specName, stockNum, unitPrice from spec wher原创 2020-07-11 11:45:52 · 1066 阅读 · 0 评论 -
week14_day05_Project01_day07
从前台搜索商品时后端获取到的数据乱码了:前端的请求报文:后端代码:后端捕获到的:mallFilter中也有对request对象编码格式的设置:之前一直是传的英文或数字,所以一直没发现这个bug。解决:类似与之前get请求的处理方法,先解码,再编码String str = new String(request.getParameter("message").getBytes("ISO-8859-1"),"UTF-8");解决问题转载至:https://www.cnblogs.com转载 2020-07-10 20:12:37 · 873 阅读 · 0 评论 -
week14_day03_Project1_day05
之前上传图片时,没法传中文名的图片,解决方法:-Dfile.encoding=UTF-8但是tomcat又会出现乱码。。。。。原创 2020-07-08 20:27:50 · 121 阅读 · 0 评论 -
week14_day02_Project1_day04
编辑商品模块出现的bug前端要求返回的格式:我返回的格式:必须按照前端要求的格式返回json数据。看json数据一定要把它放到json解析器里看,否则很可能没看全。。。然后我把返回的json对应的java类写成了这样,又报错了改完之后返回的json数据是这样的:红框地方应该是json对象goods。又错了,改:...原创 2020-07-07 12:40:22 · 282 阅读 · 0 评论 -
week14_day01_Project1_day03
返回的是这样的话表示 response.getWriter().println(gson.toJson(Result.ok(goodsTypeVOS)));有问题,返回的本应当是一个json字符串,你却返回了一个Result对象。更改: response.getWriter().println(gson.toJson(gson.toJson(Result.ok(goodsTypeVOS))));...原创 2020-07-06 14:52:11 · 276 阅读 · 1 评论 -
week13_day06_Project1_day02
今天遇到了这个bug,在这句代码这debug了半天:返回的login明明有值却登录不进去,就算值为空也得输出第二个红框中的内容啊。bug在第106行,前端一定要让我返回一个json数据,我直接返回了个Result对象。。。。改: response.getWriter().println(gson.toJson(Result.ok(loginVO)));...原创 2020-07-05 12:01:08 · 253 阅读 · 0 评论 -
java.sql.SQLException: Unknown column ‘email‘ in ‘where clause‘ Query: select * from admin where ema
IDEA中这句sql出错后我又把这句sql放到了mysql中试了试,也报这样的错。一看数据库,我的表中的email写成了eamil,我人都傻了。啥也别说了,删了表重建吧。原创 2020-07-04 22:32:05 · 417 阅读 · 0 评论 -
Rebuild Project
当把一个文件放到web目录下,重启Tomcat后,去浏览器中访问这个文件时,发现访问不到。错误原因大概率是没有Rebuild Project,不Rebuild Project的话这个文件仅仅在开发目录中而已。Rebuild Project后会将这个文件放置到部署目录中!...原创 2020-06-25 09:30:04 · 2520 阅读 · 0 评论 -
Tomcat报错:Caused by: java.lang.IllegalArgumentException...
Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> url3 in servlet mappingTomcat报错,表示你的url-pattern写的不对。一看代码,发现:应当改成:原创 2020-06-22 23:23:45 · 1110 阅读 · 0 评论 -
Tomcat报错:Caused by: java.lang.IllegalArgumentException: The servlets named.....
Caused by: java.lang.IllegalArgumentException: The servlets named [com.cskaoyan.servlet.urlPattern.UrlPatternServlet1] and [com.cskaoyan.servlet.urlPattern.UrlPatternServlet2] are both mapped to the url-pattern [/url2] which is not permitted at org.apache原创 2020-06-22 23:10:05 · 1722 阅读 · 0 评论