SSM项目JDK版本过高导致的问题

SSM项目启动时正常当请求到hander后跳转的jsp页面报以下的错误

An error occurred at line: 1 in the generated java file

The type java.util.Map$Entry cannot be resolved. It is indirectly referenced from required .class files


An error occurred at line: 1 in the generated java file
The type java.io.ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files


Stacktrace:
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:102)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:331)
at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:469)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:378)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:353)

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:340)


是由于我的jdk采用的1.8,把jdk版本修改为低版本就行了。

SSM项目JDK版本过高导致的问题_第1张图片

    

你可能感兴趣的:(java)