[英]Why javax.annotation pacakge dose not have type annotations in jdk 8?
我尝试从Internet运行一些代码,该代码在Intellij IDEA,语言级别和JDK使用Java 8的情况下使用类型注释:
问题快照已存在javax.annotation包,但不能导入类型注释,如何解决此问题?
您没有包含此类的jar。 将FindBugs添加到pom.xml /类路径中。
<dependency>
<groupId>com.google.code.findbugs</groupId>
<artifactId>findbugs</artifactId>
<version>3.0.1</version>
</dependency>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.