[英]Getting Error The type java.util.Map$Entry cannot be resolved
Getting Below error on Jsp when added below Code.. 在下面的代码中添加时,Jsp上出现以下错误。
Code : Map<Long, String> topMenuMap = new HashMap<Long, String>();
代码:
Map<Long, String> topMenuMap = new HashMap<Long, String>();
Error : The type java.util.Map$Entry cannot be resolved.
错误:无法解析类型java.util.Map $ Entry。
It is indirectly referenced from required .class files 从所需的.class文件间接引用它
import java.util.*
在JSP页<%@ page import="java.util.*" %>
here they say to upgrade Tomcat 7 to higher version to be compatible with Java 8. Minimum version is Tomcat 7.0.54 他们在这里说要将Tomcat 7升级到更高版本以与Java 8兼容。最低版本是Tomcat 7.0.54
https://www.howopensource.com/2015/07/unable-to-compile-class-for-jsp-the-type-java-util-mapentry-cannot-be-resolved/ https://www.howopensource.com/2015/07/unable-to-compile-class-for-jsp-the-type-java-util-mapentry-cannot-be-resolved/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.