
异常
斧头湖懒客
懒人不想写
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
【IDEA】创建maven项目时,报错[FATAL_ERROR] Cannot start Maven: Cannot find JRE ‘9.0‘
由于此前安装使用过JDK9.0,后来换为JDK1.8,所以在创建maven项目的时候总提示不能找到JRE9.0.报错[FATAL_ERROR] Cannot start Maven: Cannot find JRE ‘9.0’在创建maven项目之前对maven进行如下设置更换为现在使用的JDK...原创 2021-06-25 11:56:17 · 514 阅读 · 1 评论 -
mongoTemplate条件查询报错
mongoTemplate条件查询时报属性匹配异常信息:Caused by: java.lang.IllegalAccessError: tried to access class org.springframework.beans.PropertyMatches from class org.springframework.data.mapping.PropertyReferenceException。原创 2022-09-28 10:25:07 · 635 阅读 · 0 评论 -
Tomcat启动报错
文章来源:https://blog.csdn.net/MXDMAX/article/details/120827517Tomcat启动报错:Error:Cannot build artifact ‘ytdatemonitor:war exploded’ because it is included into a circular depe解决方案:步骤:File-- Porject Struccture ---- Artifacts...转载 2022-03-02 15:53:47 · 337 阅读 · 0 评论 -
程序异常终止:Process finished with exit code -1073741819 (0xC0000005)
程序异常终止:Process finished with exit code -1073741819 (0xC0000005)程序上周五下班还是可以正常运行,周一打开项目就启动不了,报出上面错误。自己尝试各种方法都没能解决,在网上找到一个答案。解决方案地址:https://blog.csdn.net/Chameleons1/article/details/87101046**原因:**原因是安装了金山词霸,测试关闭金山词霸后run可行,重新打开金山词霸后run还是可行的。论坛回复说自动取词/自动划译转载 2021-12-06 10:59:22 · 1072 阅读 · 1 评论 -
启动SpringBoot报错Input length = 1解决办法
引用来源报错信息maven-resources-plugin:3.2.0:resources (default-resources) on project jcy_interface_services: Input length = 1 -> [Help 1]错误原因maven,resource目录下配置文件的编码格式未设置。默认为GBK编码格式,需要在idea中设置编码为UTF-8。解决办法1.Settings---->File Encodings----> 凡是设计编码格式转载 2021-08-02 09:59:59 · 7599 阅读 · 2 评论 -
Logback configuration error detected:D:\log\exchange-platform\info.2021-07-27.log (系统找不到指定的路径。)
Caused by: java.lang.IllegalStateException: Logback configuration error detected: ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - Failed to create parent directories for [D:\log\exchange-platform\info.2021-07-27.log]ERROR in ch.qos.logba原创 2021-07-27 12:39:35 · 776 阅读 · 0 评论 -
Could not autowire. No beans of ‘UserMapper‘ type found.
文章来自SpringBoot与MyBatis整合的时候,也遇到过这个问题。原因可能有两个,第一个是IntellijIDEA本身工具的问题。第二个便是我们导入@Service包的时候导入包错误造成的检查完第二个问题后,没有发现问题,那就是idea的问题,问题产生的原因:因为 @Mapper 这个注解是 Mybatis 提供的,而 @Autowried 注解是 Spring 提供的,IDEA能理解 Spring 的上下文,但是却和 Mybatis 关联不上。而且我们可以根据 @Autowried 源转载 2021-07-20 15:33:54 · 13459 阅读 · 2 评论 -
org.springframework.beans.factory.BeanDefinitionStoreException
spring和mybatis进行整合时碰到的问题如下:Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from URL原因:工程的jdk版本和spring的jar包不兼容,我用得JDK1.8_201 , spring的版本是5.1.6.RELEASE ,更改spring版本为5.1.0.RELEASE 问题解决...原创 2021-07-16 17:16:53 · 496 阅读 · 0 评论 -
Failed to load ApplicationContext
报错:Caused by: java.lang.IllegalStateException: Neither GenericXmlContextLoader nor AnnotationConfigContextLoader was able to load an ApplicationContext报错的原因是找不到配置文件@RunWith(SpringJUnit4ClassRunner.class)在@RunWith下没有添加@ContextConfiguration(locations=“clas原创 2021-07-16 16:47:23 · 6394 阅读 · 0 评论 -
Could not find resource mybatis-config.xml
配置文件位置没放错,就是找不到配置文件可能是idea编译器没法识别,又在pom中指定了这段配置,还是无法解决问题 <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.prope原创 2021-07-16 14:56:15 · 7299 阅读 · 4 评论 -
springboot启动报Whitelabel Error Page
Whitelabel Error PageThis application has no explicit mapping for /error, so you are seeing this as a fallback.Wed Jul 14 11:38:25 CST 2021There was an unexpected error (type=Not Found, status=404).解决办法:1,先检查URL是否正确2,检查Controller类是否在springboot的启动类的同级原创 2021-07-14 12:33:30 · 492 阅读 · 0 评论 -
Address already in use: JVM_Bind 端口被占用
原文链接:https://blog.csdn.net/ydk888888/article/details/815670321.启动cmd, 执行命令netstat -ano|findstr 1099 ,会查询出占用端口号的进程号,这时候执行命令taskkill -f -pid 进程号 杀死进程,然后重启Tomcat即可解决2.若方法一查询不到进程,(假设使用IDEA)则在Run- Edit Configurations中删掉添加的Tomcat,之后再重新配置Tomcat及其artifacts等,原创 2021-07-12 16:12:57 · 437 阅读 · 0 评论 -
包名不要以java命名
Error: A JNI error has occurred, please check your installation and try againException in thread “main”你的包名以java开头的话,会报这个错误,你改一下包名就好了原创 2021-07-07 10:33:57 · 156 阅读 · 0 评论 -
Tomcat启动出错:cannot open URL.please check this URL is correct:
项目使用maven带的Tomcat插件启动正常,使用本地Tomcat启动出错.查看本地Tomcat设置,发现端口不同,改为相同就可以了原创 2021-06-28 14:48:06 · 1500 阅读 · 0 评论 -
spring配置文件配置bean时,class属性持续爆红
spring配置文件配置bean时,class属性持续爆红,pom文件正常。class属性持续爆红,检查项目jar包没能导入,常用的 Maven 工具栏,第一个按钮:Reimport All Maven Projects 表示根据 pom.xml 重新载入项目。重新加载pom文件,问题解决.附上maven常用工具栏的使用添加链接描述...原创 2021-06-25 17:53:11 · 2769 阅读 · 0 评论 -
idea编写pom文件版本爆红和spring.xml约束报红解决方法
idea编写spring.xml约束报红解决方法https://blog.csdn.net/Bb15070047748/article/details/109537902Idea中pom.xml文件版本号爆红解决方案:https://blog.csdn.net/weixin_44532540/article/details/89672344https://blog.csdn.net/a2868221132/article/details/102655468...原创 2021-06-25 09:51:45 · 722 阅读 · 0 评论 -
dubbo报错:Failed to invoke the method add in the service 解决方法
com.alibaba.dubbo.rpc.RpcException: Failed to invoke the method add in the service需要进行序列化的POJO类没有进行序列化原创 2019-07-04 19:00:00 · 9386 阅读 · 0 评论 -
数据格式化异常
@WebServlet("/route/*")public class RouteServlet extends BaseServlet { private RouteService routeService=new RouteServiceImpl(); public void pageQuery(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {原创 2020-09-02 13:58:31 · 814 阅读 · 0 评论