
Java开发常见BUG解决方案
文章平均质量分 56
雾林小妖
文能破死局,武可定乾坤。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
XML-BEANS compiled schema: Could not locate compiled schema resource
使用JAVA+POI向Excel中写入折线图的时候,报错如下:Exception in thread "main" org.apache.xmlbeans.SchemaTypeLoaderException: XML-BEANS compiled schema: Could not locate compiled schema resource原创 2025-06-02 07:00:00 · 880 阅读 · 0 评论 -
mybatis报错:SQLException:Parameter index out of range(2>number of parameter,which is 1)
mybatis报错:SQLException:Parameter index out of range(2>number of parameter,which is 1)原创 2025-05-19 07:00:00 · 551 阅读 · 0 评论 -
mybatis报错:Expected one result (or null) to be returned by selectOne(), but found: 2
springboot集成mybatis报错:Expected one result (or null) to be returned by selectOne(), but found: 2原创 2025-05-05 06:00:00 · 708 阅读 · 0 评论 -
IDEA中如何统一项目名称/复制的项目如何修改根目录名称
IDEA中如何统一项目名称/复制的项目如何修改根目录名称原创 2025-04-22 22:06:32 · 465 阅读 · 0 评论 -
java.lang.NoClassDefFoundError:javax/servlet/http/HttpServletRequest
springboot工程启动报错:java.lang.NoClassDefFoundError:javax/servlet/http/HttpServletRequest原创 2025-04-28 07:00:00 · 429 阅读 · 0 评论 -
Web application could not be started as there was no org.springframework.boot.web.servlet.server.Ser
springboot工程启动报错:Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context.原创 2025-04-21 06:00:00 · 1944 阅读 · 0 评论 -
Exception in thread “main“ java.lang.UnsupportedClassVersionError: com/automation/hweb/HwebApp
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/automation/hazqweb/HazqwebApplication has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class fi原创 2025-04-02 22:02:41 · 1684 阅读 · 0 评论 -
java.sql.SQLException: Field ‘id‘ doesn‘t have a default value
mybatis添加数据的时候报错:java.sql.SQLException: Field 'id' doesn't have a default value原创 2025-03-15 07:00:00 · 327 阅读 · 0 评论 -
message from server: “Host ‘WIN-CMI2EUA00‘ is not allowed to connect to this MySQL server“
idea连接数据库的时候报错:message from server: "Host 'WIN-CRMI2EPUA00' is not allowed to connect to this MySQL server"原创 2025-02-20 18:00:00 · 811 阅读 · 0 评论 -
According to MySQL 5.5.45+,5.6.26+,requirments SSL connection must be established by default if exp
Springboot工程启动的时候,控制台出现如下警告信息:WARN:Establishing SSL connection without servers identity verification is not recommended.According to MySQL 5.5.45+,5.6.26+,requirments SSL connection must be established by default if explicit option isn’t set.For compl原创 2025-01-20 06:00:00 · 329 阅读 · 0 评论 -
java判断文件是否存在
Java中根据路径判断文件是否存在原创 2024-12-12 18:28:17 · 535 阅读 · 0 评论 -
cmd中查询正在执行的端口信息
在cmd中查询正在执行的端口信息并释放原创 2024-12-16 06:00:00 · 1766 阅读 · 0 评论 -
mysql报错:Field id doesnt hava a default value
mysql报错:Field 'id' doesnt hava a default value原创 2024-11-04 06:15:00 · 1190 阅读 · 0 评论 -
springboot工程统一JDK版本(IDEA)/java 警告 源发行版 17 需要目标发行版 17/Unsupported class file major version 61
springboot工程运行时报错:IDEA java 警告 源发行版 17 需要目标发行版 17或者Unsupported class file major version 61(提示当前JDK版本过高,需要降低JDK版本)原创 2024-09-30 19:00:00 · 809 阅读 · 0 评论 -
如何替代JavaScript中的eval()语句
使用jQuery替代javaScript中的eval()用法,因为JavaScript中的eval()函数是有潜在危险,而且经常被误用。在不可信的代码里使用eval()有可能使程序受到不同的注入攻击。原创 2024-09-25 19:00:00 · 892 阅读 · 0 评论 -
java.sql.SQLException: Value ‘0000-00-00 00:00:00‘ can not be represented as java.sql.Timestamp
java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Timestamp原创 2024-09-09 07:00:00 · 252 阅读 · 0 评论 -
Java工程报错:Refused to display URL in a frame because it set X-Frame-Options to deny及问题详解
springboot工程整合springSecurity报错:Refused to display URL in a frame because it set X-Frame-Options to deny及问题详解原创 2024-09-03 19:00:00 · 2212 阅读 · 0 评论 -
NoClassDefFoundError:javax/servlet/ServletOutputStream(2024年编写)
springboot工程启动报错:NoClassDefFoundError:javax/servlet/ServletOutputStream原创 2024-07-15 06:00:00 · 675 阅读 · 0 评论 -
为什么出现:Bean named ‘defaultSockJsTaskScheduler‘ is expected to be of type ‘org.springframework
springboot整合websocket报错:org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'defaultSockJsTaskScheduler' is expected to be of type 'org.springframework.scheduling.TaskScheduler' but was actually of type 'org.springframework.beans.f原创 2024-07-08 06:00:00 · 1243 阅读 · 0 评论 -
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.原创 2024-07-01 06:00:00 · 1189 阅读 · 0 评论 -
MybatisPlus添加数据自增主键失效,mysql自增主键失效
MybatisPlus添加数据,mysql自增主键失效原创 2024-06-03 06:00:00 · 1273 阅读 · 0 评论 -
mysql修改密码提示: Your password does not satisfy the current policy requirements
mysql修改密码提示: Your password does not satisfy the current policy requirements原创 2024-04-08 07:00:00 · 9176 阅读 · 0 评论 -
redhat安装mysql报错:sql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.28
redhat7安装mysql5.7报错:mysql-community-common(x86-64) >= 5.7.9 is needed by mysql-community-libs-5.7.28-1.el7.x86_64原创 2024-04-02 19:30:00 · 722 阅读 · 0 评论 -
is ignored, because it exists, maybe from xml file
mybatisplus报错: is ignored, because it exists, maybe from xml file原创 2024-03-20 13:26:37 · 2527 阅读 · 0 评论 -
mybatisplus提示:Property ‘mapperLocations‘ was not specified.
mybatisplus提示:Property 'mapperLocations' was not specified.原创 2024-03-25 06:00:00 · 2067 阅读 · 0 评论 -
This primary key of “id“ is primitive !不建议如此请使用包装类 in Class解决办法及源码
springboot整合mybatisplus开发项目,启动后报错:This primary key of "id" is primitive !不建议如此请使用包装类 in Class原创 2024-03-25 06:00:00 · 4253 阅读 · 0 评论 -
Failed at the [email protected] install script.
Failed at the [email protected] install script.原创 2024-02-29 19:30:00 · 1180 阅读 · 0 评论 -
npm ERR! code ERESOLVE
npm ERR! code ERESOLVEnpm ERR! ERESOLVE unable to resolve dependency tree原创 2024-02-28 19:00:00 · 1121 阅读 · 0 评论 -
Error response from daemon: Container 容器_id is restarting, wait until the container is running
通过docker容器登录mysql报错:docker exec -it mysql_slave1 /bin/bashError response from daemon: Container 8905b0b350720c4c4ebcc06e735d242076ea5909d2d2b074e9fac7928f28f554 is restarting, wait until the container is running原创 2024-01-16 14:52:14 · 2588 阅读 · 0 评论 -
Failed to configure a DataSource: ‘url‘ attribute is not specified and no embedded datasource could
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.原创 2024-01-05 10:19:28 · 8766 阅读 · 1 评论 -
Establishing SSL connection without server‘s identity verification is not recommended. According to
Establishing SSL connection without server's identity verification is not recommended. According to原创 2023-12-22 22:48:53 · 1849 阅读 · 0 评论 -
Method annotated with @Bean is called directly. Use dependency injection instead.
Method annotated with @Bean is called directly. Use dependency injection instead.原创 2023-12-19 17:03:30 · 1582 阅读 · 0 评论 -
StringUtils.isEmpty()方法过期的替代方法
isEmpty过期怎么办,hasText的用法原创 2023-12-11 14:49:19 · 3380 阅读 · 2 评论 -
Layui框架弹出框form表单中单选按钮状态不刷新
在使用Layui的弹框的时候,无法修改弹框中form表单单选按钮radio的状态。原创 2023-11-27 15:48:01 · 894 阅读 · 0 评论 -
解析JSON字符串:属性值为null的时候不被序列化
解析JSON问题原创 2023-11-12 23:22:38 · 1134 阅读 · 0 评论 -
解析JSON字符串报错:com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “st
ObjectMapper解析JSON字符串报错:com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "stu_id1" (class com.txc.objectmapper.bean.Student), not marked as ignorable (2 known properties: "stu_id", "stu_name"])原创 2023-11-08 09:43:05 · 3536 阅读 · 0 评论 -
解析JSON字符串报错:com.fasterxml.jackson.core.JsonParseException: Unexpected character (‘s‘ (code 115)): wa
ObjectMapper解析JSON字符串报错:com.fasterxml.jackson.core.JsonParseException: Unexpected character ('s' (code 115)): was expecting double-quote to start field name原创 2023-11-08 09:34:31 · 1849 阅读 · 0 评论 -
解析JSON字符串报错:com.fasterxml.jackson.core.JsonParseException: Unexpected character (‘‘‘ (code 39)): was
在springboot中使用ObjectMapper解析JSON报错原创 2023-11-07 20:40:12 · 2772 阅读 · 0 评论 -
此页面不能正确地重定向
此页面不能正确地重定向FireFox检测到该服务器正在将指向此网址的请求无限循环重定向。原创 2023-10-28 09:52:06 · 1996 阅读 · 0 评论 -
来自“...8080/login.html“的资源已被阻止,因为 MIME 类型(“text/html“)不匹配(X-Content-Type-Options: nosniff)
配置springSecurity5.7静态资源不拦截问题原创 2023-10-26 18:50:51 · 1257 阅读 · 0 评论