历史背景
springboot2+maven的项目,最近一直是好的,突然今天就启动报错。我尝试重启电脑,删除idea缓存都无法解决。原因是我在国际化文件中增加了一行内容,然后其余的都没有动过。
错误内容
大概的意思就是说在国际化zh_CN.properties文件中没有找到key等于【faultContent7】这个数据,其实就是它没有找到这个国际化语言对应的文件。
10:48:17.316 [http-nio-8080-exec-15] ERROR c.r.f.w.e.GlobalExceptionHandler - [handleRuntimeException,69] - 请求地址'/iot/alarm/list',发生未知异常.
org.springframework.context.NoSuchMessageException: No message found under code 'faultContent7' for locale 'zh_CN'.
at org.springframework.context.support.DelegatingMessageSource.getMessage(DelegatingMessageSource.java:76)
at com.ruoyi.common.utils.MessageUtils.message(MessageUtils.java:25)
at com.ruoyi.flowinn.service.impl.BsAlarmServiceIm