1. 程式人生 > >Type Java compiler level does not match the version of the installed Java project facet.項目內容沒錯但是項目上報錯,不影響運行

Type Java compiler level does not match the version of the installed Java project facet.項目內容沒錯但是項目上報錯,不影響運行

images ems rop http ges 內容 工程 版本 ren

1、Window->Show View->Problems

技術分享

2、在項目上右鍵properties->project Facets->修改右側的version 保持一致

技術分享

3、window->preferences->Java->Compiler->設置右側的Compiler compliance level

技術分享

4、window->preferences->java->Installed JREs->設置或者選擇右側的Installed JREs

技術分享

5、以上三處的jdk版本要保持一致,才能編譯通過

6、另外,一般新導入的工程需要設置編碼格式,如下圖:

技術分享

7、修改jsp的編碼格式

技術分享

Type Java compiler level does not match the version of the installed Java project facet.項目內容沒錯但是項目上報錯,不影響運行