【报错】String cannot be resolved to a type解决方案

JSP页面中出现“String cannot be resolved to a type”字符串无法解释为类型

解决方案

1.右键项目名,选择Properties

在这里插入图片描述

2.选择Java Build Path,选择Libraries,选中JRE System Library[jdk1.8.0_151],点击Edit
在这里插入图片描述

3.选中“Workspace default JRE(Sun JDK 1.8.0_102)”→Finish

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/weixin_48701521/article/details/127787120