报错内容:
Multiple annotations found at this line:
- The method getContextPath() from the type HttpServletRequest refers to the missing type String
- java.io.IOException cannot be resolved to a type
- String cannot be resolved to a type
解决办法:
①选中该项目并点击鼠标右键 - Build Path - Configure Build Path... , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。
②右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace default JRE(jre1.8.0_144) 然后 Finish 。