当我对mysql DB执行任何过程创建或更新操作时,我收到以下错误
表'./mysql/proc'被标记为崩溃,应该修复
尝试使用以下命令运行mysql isam recover - myisamchk -q -r/var/lib/mysql/mysql/proc
但问题仍然存在.
提前致谢.
由于运行内存不足 - Intelliji 一直在抛出一个弹出错误
“intelliJ IDE 中的磁盘空间不足错误。”(重复)
版本 - IntelliJ Idea 社区版本 14
从官方网站https://www.jetbrains.com/idea/help/tuning-intellij-idea.html尝试了一些建议
任何尺寸增加技术都无法解决这个特定的错误。(注意 - Intelliji 安装的分区有 100+ GB 的可用空间。)
还尝试了论坛中建议的解决方案 - 在 /bin/idea.vmoptions 文件中添加参数 -Didea.no.system.path.space.monitoring=true(位于 <intelliJ 安装目录内>)并重新启动 intelliJ,
但问题仍然存在。任何建议都是最受欢迎的。
我在缩进规则 (com.puppycrawl.tools.checkstyle.checks.indentation) 上收到 checkstyle 声纳违规
'public' 缩进级别 4 不正确,预期级别应为 8。
在这一行
public Response getItem(@PathParam(CODE) final ProgramCode programCode,
Run Code Online (Sandbox Code Playgroud)
在 Intelliji 中,请建议如何将缩进级别更改为 8
当我们有一个没有任何代码的 try 块是 finally 块时,编译器会很好地编译它。然而,这里没有 try 的目的——因为我们既没有捕获异常也没有清理 finally 块中的代码。
public int updateTable(InputVo sfVo){
//SqlSession session = ConnFactory.getSqlSession();
//InputMapper spMapper = session.getMapper(InputMapper .class);
int updRecs=0;
try {
mapper.updateData(sfVo);
updRecs=sfVo.getRecsUpdated();
return updRecs;
} finally {
//session.close();
}
}
Run Code Online (Sandbox Code Playgroud)
如果是这样,为什么 JAVA 没有考虑对此进行编译时检查?
如果编译器在编译时本身抛出错误不会更好 - 比如“不能有一个空的 finally 块”