eclipse代码中有错误,却不在项目中显示红叉

修改eclipse代码提示级别即可。

1.单个项目修改

项目上右键–>properties–>javacompiler–>building–>enable project specific setting–>build pathproblems–>选中abort Incomplete build path/Circular dependencies 这两个选项修改为Warning

2.整个环境修改

window->preferences->java->compiler->building->buildpath problems–>选中abort Incomplete build path/Circular dependencies 这两个选项修改为Warning

这里写图片描述