① 右鍵項目 → Build Path → Configure Build Path… 【Libraries】
② 選中JRE,單擊Edit…
③ 選中 Workspace default JRE → Finish
④ 選中 Server Library → Edit…
⑤ 選中存在的tomcat服務器 → Finish…
【改完之後,雖然項目上有紅叉,但是不影響運行】
============================================================================
【去掉紅叉】
① 右擊項目 → 最底下的 Properties
② 點擊 Project Facets → Axjs2 Web Services → Runtimes
③ 選中存在的tomcat服務器即可