编程那点事编程那点事

专注编程入门及提高
探究程序员职业规划之道!

注解

自定义注解提示:RetentionPolicy/ElementType cannot be resolved to a variable
Java编程

自定义注解提示:RetentionPolicy/ElementType cannot be resolved to a variable

阅读(9368)

在开发excle的通用导入导出功能,用到注解,报如下错误,包导入不进来RetentionPolicy cannot be resolved to a variableElementType cannot be resolved to a variable@Retention和@Target都能导入进来,没办法只能手动导入包了import java.lang.annotation.*或import java.lang.annotation.RetentionPolicy;import java.lang.annotation.Ele...