一个问题记录-服务器那边所以得请求进去,去操作数据库的时候,全部都拿不到数据库链接com.alibaba.druid.pool.GetConnectionTimeoutException
摘要:1 问题 愉快的星期六,需要接到电话,说系统崩了 一看日志,发现所以请求全部拿不到数据库链接,等待超时报错,啥都不说,先重启服务器和服务器,恢复正常 2 查找原因 1)首先定位到第一个错误,如下 这个错误是11:10 ### Cause: com.mysql.cj.jdbc.exceptions.M
阅读全文
Error assembling WAR: webxml attribute is required
摘要:转:https://blog.csdn.net/wang124454731/article/details/69569165 1 maven打包的过程中的两个问题 1.1 The repository system is offline but the artifact com.zrw:zrw-pa
阅读全文
Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file
摘要:转: https://blog.csdn.net/qq_26898033/article/details/128915500 1 错误信息 org/ springframework /boot / maven/BuildInfoMojo hasbeen copiled by a more recen
阅读全文
tomcat报错:java.io.IOException: No space left on device
摘要:1 简介 今天网站很多页面访问突然就404了,路径分明没有变,是正确的,就很奇怪 排查日志发现报错java.io.IOException: No space left on device 这个错误,是磁盘空间不够了,我们需要对磁盘空间进行排查 2 对磁盘进行排查 使用命令:du -sh * 可以查看
阅读全文
手动抛出异常事务回滚问题
摘要:自定义了一个异常 extend Exception,手动抛出异常后,发现事务没有回滚。 发现事务回滚默认的exception是runtimeexception! 所以自定义的异常extend runtimeexception,手动抛出,事务回滚。
阅读全文
@RestControllerAdvice全局异常统一处理
摘要:spring项目中,我们通常规定了返回的格式(成功-失败-异常),特别是异常怎么处理方便呢? 1.自定义状态码实体 package com.ruoyi.common.constant; /** * 返回状态码 * * @author ruoyi */ public class HttpStatus
阅读全文
org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter异常
摘要:转:https://blog.csdn.net/u010670689/article/details/40301043 使用maven开发web应用程序, 启动的时候报错: jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
阅读全文