
BUG
学习工作遇见的bug
陈年_H
永远年轻,永远热泪盈眶
展开
-
BUG——VUE:Cannot find module ‘webpack/lib/RuleSet‘
npm install webpack@^4.0.0 --save-dev之前使用5.3就报错,给个低版本就可以了,搞了一下午~原创 2023-03-13 15:17:31 · 343 阅读 · 0 评论 -
BUG——Expected one result (or null) to be returned by selectOne(), but found: 2
原因:1)查询一条数据,但返回数据有多条ps:数据库中有相同的数据,不一定完全相同,可能是要查询的字段相同2)想要查询多条数据,但是被前台限制今天搭建ssm框架实现登录注册时,遇见的一个小问题...原创 2020-06-07 19:50:47 · 200 阅读 · 0 评论 -
BUG——Could not resolve placeholder ‘xxx‘ in value ‘${xxx}‘
报错1、Error creating bean with name ‘xxx’: Injection of autowired dependencies failed2、Could not resolve placeholder ‘xxx’ in value ‘${xxx}’3、Failed to load applicationcontext猜测猜测1:yml中没有该配置猜测2:配置名称重复或者说冲突,比如我写的eml猜测3:实体类上未加@Component猜测4:yml中出现多余符号,比原创 2021-06-29 11:22:59 · 2275 阅读 · 0 评论 -
BUG——Load balancer does not have available server for client: PROJECT
异常Load balancer does not have available server for client: PROJECT(百度翻译:负载平衡器没有可用于客户端的服务器:PROJECT)解决一、注册中心没有该服务:1)PROJECT服务没有启动2)没能注册到注册中心二、没有找到指定服务:1)名字写错了,比如我将PROJECT写成了PORJECT三、一系列的配置忘写了,导致上面的可能发生了1)pom.xml中的jar包<dependency> <gr原创 2021-01-03 17:37:51 · 3771 阅读 · 0 评论 -
BUG——SpringBoot静态资源出不来
问题第一次使用SpinrgBoot微框架,都说它有默认的几个映射目录:classpath: /static classpath: /publicclasspath: /resourcesclasspath: /META-INF/resources但是我按照要求创建好目录,为什么静态资源出不来呢?如下图所示——显示的还是没有小猫的初始tomcat界面如下图所示——解决为何会这样呢?其实就是缓存原因。静态资源会被浏览器缓存下来,修改之后再次访问时,需要清除缓存:Ctrl+Shift原创 2020-12-25 20:10:16 · 322 阅读 · 0 评论 -
BUG——@Autowired HttpServletResponse报错(Could not autowire. No beans of ‘HttpServletResponse’ type fo)
1、报错Could not autowire. No beans of ‘HttpServletResponse’ type found.2、原因spring团队只让HttpServletRequest自动装配功能,排除HttpServletResponse。spring团队倡导把reqeust、response与其他实例分开。3、解释servlet是服务器创建的,所以不属于IOC管理,没法自动注入。sevlet至少也需要服务器启动时,才会创建,而在编写代码时,肯定是不存在滴。4、解决1)该注原创 2020-12-18 17:56:44 · 3993 阅读 · 3 评论 -
BUG——Freemarker:The following has evaluated to null or missing
一、异常FreeMarker template error:The following has evaluated to null or missing:==> goodsDesc [in template "item.ftl" at line 428, column 75]----Tip: If the failing expression is known to be legally refer to something that's sometimes null or missin原创 2020-12-11 15:30:14 · 5619 阅读 · 0 评论 -
BUG——Solr:只有id和version
一、异常{“responseHeader”:{“status”:0,“QTime”:0,“params”:{“q”:":",“_”:“1607333741819”}},“response”:{“numFound”:2,“start”:0,“docs”:[{“id”:“193805a6-21ca-445e-b7c7-dd9176b337a0”,“version”:1685411404248514560},{“id”:“caaa2817-e2e9-42bc-af56-3ff6ab7c1原创 2020-12-07 19:24:42 · 539 阅读 · 0 评论 -
BUG——AngularJS:Cannot set property ‘pic‘ of undefined
一、异常TypeError: Cannot set property ‘pic’ of undefinedat contentController.js:87at angular.min.js:62at C (angular.min.js:88)at C (angular.min.js:88)at angular.min.js:90at h.eval(angular.min.js:98)ath.eval (angular.min.js:98) at h.eval(angular.min原创 2020-12-06 19:43:56 · 308 阅读 · 0 评论 -
BUG——org.apache.ibatis.binding.BindingException: Parameter ‘xxxxx‘ not found. Available parameters a
一、异常org.apache.ibatis.binding.BindingException: Parameter ‘xxxxxx’ not found. Available parameters are [arg1, arg0, param1, param2]二、解释1)BindingException:绑定异常2)Parameter ‘xxxxxx’ not found:参数xxxxxx找不到3)Available parameters…:可用的参数……三、解决其实异常提醒已经很明显了。原创 2020-11-20 15:45:57 · 2757 阅读 · 0 评论 -
BUG—— A child container failed during start;Failed to start component [StandardEngine[Tomcat].
异常…… A child container failed during start解决方式一:给jar包加个作用范围<dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> <version>2.5</version> <scope>provided</sc原创 2020-11-06 20:05:18 · 945 阅读 · 0 评论 -
BUG——Access denied for user ‘Administrator‘@‘localhost‘ (using password: YES)
异常使用spring的xml配置文件将属性配置引入时报出异常——Access denied for user ‘Administrator’@‘localhost’ (using password: YES)<context:property-placeholder location="classpath:db.properties"></context:property-placeholder>解释其实看见user=Administrator就发现这个Administra原创 2020-11-03 22:27:56 · 651 阅读 · 0 评论 -
BUG——Resource not found at path ‘/mchange-commons.properties‘.
异常使用spring框架学习测试C3P0连接池时报出异常——Resource not found at path ‘/mchange-commons.properties’.解决将日志文件的依赖删除即可。原创 2020-11-03 22:19:53 · 288 阅读 · 0 评论 -
BUG——closing inbound before receiving peer‘s close_notify
报错STACKTRACE:javax.net.ssl.SSLException: closing inbound before receiving peer's close_notify at sun.security.ssl.Alert.createSSLException(Alert.java:133) at sun.security.ssl.Alert.createSSLException(Alert.java:117) at sun.security.ssl.TransportConte原创 2020-10-30 20:03:16 · 432 阅读 · 1 评论 -
BUG——Unable to import maven project: See logs for details
异常:Unable to import maven project: See logs for details解释:创建maven项目出现异常猜测:看了许多博主的回答,有一下猜测:猜测1:防火墙的原因猜测2:idea 2019与maven 3.6不兼容解决:试了防火墙之后,预感版本不兼容造成的,果不其然~重新安装了一个maven 3.5之后,问题迎刃而解了~...原创 2020-10-27 23:42:40 · 121 阅读 · 0 评论 -
BUG——Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create c
异常:org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server.### The error may exist in StudentMapper.xml原创 2020-10-27 23:27:41 · 340 阅读 · 0 评论 -
BUG——jar包依赖报错,*** cannot be resolved to a type
报错:例如Test cannot be resolved to a type代码:public class testJar { @Test public void test01() { System.out.println("测试jar包使用范围"); }}解释:查看pom发现scope(范围)标签的值是test,所以只能在测试文件中使用JUnit<dependencies> <!-- https://mvnrepository.com/artifact/j原创 2020-10-26 21:53:01 · 508 阅读 · 0 评论 -
BUG——eclipse中创建maven web项目报错web.xml is missing and <failOnMissingWebXml> is set to true
pom.xml处报错信息如下:web.xml is missing and <failOnMissingWebXml> is set to true解释:缺少web项目的核心文件web.xml解决:点击链接弹出,小窗口:原创 2020-10-26 20:11:46 · 135 阅读 · 0 评论 -
BUG——ERR_SSL_PROTOCOL_ERROR
问题描述直接上图浏览器不同,报错样式略有差别,不过提醒都差不多(ERR_SSL_PROTOCOL_ERROR)网页报错控制台报错解决方案错误访问地址——https://localsht:8080/正确访问地址——http://localsht:8080/科普????参考链接????https://blog.youkuaiyun.com/xiaoming100001/article/details/81109617http与https1、什么是http?超文本传输协议,是一个基于请求与响应,无原创 2020-10-09 20:09:40 · 1306 阅读 · 1 评论 -
BUG——双击startup.dat启动Tomcat时黑框一闪而过
问题描述双击startup.dat启动Tomcat时黑框一闪而过解决方案修改startup.bat系统文件在该文件的最上方加:SET JAVA_HOME=……和SET TOMCAT_HOME=……如下图:原创 2020-10-09 10:03:49 · 353 阅读 · 0 评论