Eclipse的JSP页面提示Multiple annotations found at this line或者String cannot be resolved to a type

简介:

最终原因:

1.window-->preferences-->java-->Installed JREs-->Add 增加你要用的jdk
2.window-->preferences-->java-->compiler,将level选为对应的版本,1.5的就选5.0,1.6的选6.0



将JDK还有apache和别人不兼容的版本改下配置


接下来最简单的操作,对着原来的JSP页面可以ctrl+A 、ctrl+x、ctrl+v 就不会报错了 

目录
相关文章
|
3月前
|
JSON Java 关系型数据库
Java更新数据库报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
在Java中,使用mybatis-plus更新实体类对象到mysql,其中一个字段对应数据库中json数据类型,更新时报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
348 4
Java更新数据库报错:Data truncation: Cannot create a JSON value from a string with CHARACTER SET 'binary'.
|
6月前
|
开发工具 数据安全/隐私保护
【Azure Developer】使用MSAL4J 与 ADAL4J 的SDK时候,遇见了类型冲突问题 "java.util.Collections$SingletonList cannot be cast to java.lang.String"
【Azure Developer】使用MSAL4J 与 ADAL4J 的SDK时候,遇见了类型冲突问题 "java.util.Collections$SingletonList cannot be cast to java.lang.String"
132 0
|
6月前
|
前端开发 Java
成功解决:java.lang.String cannot be cast to java.lang.Integer
这篇文章记录了作者在使用Axios二次封装时遇到的一个Java类型转换问题,即前端传递的字符串参数不能直接转换为Integer类型,文章提供了正确的转换方法来解决这个问题。
成功解决:java.lang.String cannot be cast to java.lang.Integer
|
8月前
|
存储 SQL 关系型数据库
【BUG记录】Cause: java.sql.SQLException: Incorrect string value: '\xF0\x9F\x90\xA6' for column 'name' at row 1
在MySQL中遇到`Incorrect string value`错误通常是因为尝试插入的字符串包含不被数据库字符集支持的字符,如表情符号。错误根源是MySQL默认的utf8不支持4字节的UTF-8字符(如Emoji)。
955 1
|
XML 数据格式
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
解决 Cannot convert value of type ‘java.lang.String‘ to required type ‘java.sql.Driver‘ for property ‘
427 0
|
XML 关系型数据库 MySQL
Mysql插入emoji表情字符编码错误 Incorrect string value: ‘\xF0\x9F\x98\x84\xF0\x9F...‘ for column ‘comment‘ at r
今天在插入数据时发现emoji表情时数据库报错了,以前从来不会报错的,因为我设计表时从来都是如下设置:
219 0
|
Java
【报错】String cannot be resolved to a type解决方案
【报错】String cannot be resolved to a type解决方案
436 1
|
Android开发 C++
Eclipse/NSight: methond could not resolved
Eclipse/NSight: methond could not resolved
84 0
|
Android开发 C语言 C++
ECLIPSE明明能跳到头文件,却提示Unresolved Inclusion,怎么办?
ECLIPSE明明能跳到头文件,却提示Unresolved Inclusion,怎么办?
258 0
|
C语言 Android开发 C++
Eclipse/NSight解决办法:unsolved inclusion stdio.h/map/string/queue/list
Eclipse/NSight解决办法:unsolved inclusion stdio.h/map/string/queue/list
133 0
Eclipse/NSight解决办法:unsolved inclusion stdio.h/map/string/queue/list