关于自己java项目中出错

来源:互联网 发布:python pack_into 编辑:程序博客网 时间:2024/06/05 14:31

1.
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 ,点击侧拉的add libraries
然后移除错误的library

0 0
原创粉丝点击