首页 > 系统服务 > 详细

eclipse报错:Multiple annotations found at this line: - String cannot be resolved to a type解决方法实测

时间:2019-05-29 17:29:16      阅读:225      评论:0      收藏:0      [点我收藏+]

Multiple annotations found at this line:
- String cannot be resolved to a type
- The method getContextPath() from the type HttpServletRequest refers to the missing type String

 

解决办法:

 

首先 右击该项目 - Build Path - Configure Build Path , 在 Libraries 选项下,会发现有个出错的jre Libraries,将其Remove掉。

然后 右击该项目 - Build Path - Add Library, 选择JRE System Library,选择Workspace defaulr JRE(jdk1.6)(此前JDK已成功安装并配置好), 然后 Finish 。

eclipse报错:Multiple annotations found at this line: - String cannot be resolved to a type解决方法实测

原文:https://www.cnblogs.com/hawk-li/p/10944997.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!