Only a type can be imported. javax.persistence.Id resolves to a package
2017-12-04 15:41
459 查看
这是调式jsp页面时的错误,网上搜了好多都没有解决我问题。
最后无意间发现,多了这句:<%@page import="javax.persistence.Id"%>
删了问题就解决了
知道原因的大神可以解释一下
最后无意间发现,多了这句:<%@page import="javax.persistence.Id"%>
删了问题就解决了
知道原因的大神可以解释一下
相关文章推荐
- Only a type can be imported. classname resolves to a package的解决
- Only a type can be imported. leier.JDBC_Connection resolves to a package
- Java错误提示--------Only a type can be imported. java.awt.event resolves to a package
- Only a type can be imported. xxxx resolves to a package
- Only a type can be imported. com.xxx.xxx.XXX resolves to a package 解决方法 .
- JSP页面500异常:Only a type can be imported. com.testtest.LineCharset resolves to a package
- Only a type can be imported. com.xxx.xxx.XXX resolves to a package 解决方法
- 解决Only a type can be imported. * resolves to a package
- only a type can be imported: XXX resolves to a package
- Jsp-引包问题-Only a type can be imported. com.sw resolves to a package
- Only a type can be imported. resolves to a package
- 解决Only a type can be imported. * resolves to a package
- Only a type can be imported. com.xxx.xxx.XXX resolves to a package 解决方法
- Only a type can be imported. javax.transaction.Synchronization
- Unable to compile class for JSP: Only a type can be imported. com.gao.model.OutputStatistics resolve
- 错误:javax.servlet.jsp.PageContext can not be to a type
- 【TypeError: only length-1 arrays can be converted to Python scalars】
- Only&nbsp;a&nbsp;type&nbsp;can&nbsp;be&nbsp;imported
- tomcat6异常:Only a type can be imported解决方法
- Liferay hook only a type can be imported