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
阅读全文