In the development process, you may use custom annotations (this article uses custom annotations when using JWT) to report an error:
ElementType cannot be resolved to a variable
Manually import packages:
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
Perfect solution
Read More:
- Java error prompt….. cannot be resolved
- [Solved] SpringCloud Compile Error: java: JPS incremental annotation processing is disabled. Compilation results on partial recompilation may be inaccurate.
- [Solved] jooq Customize GeneratorStrategy Error: ClassNotFoundException
- Customize the jump address after Shiro logout
- Spring project import @Resource Annotation Error [How to Solve]
- Springboot reports an error After adding the import annotation: application failed to start
- [Solved] Flyway Error: Detected applied migration not resolved locally:2 and the execution script error
- Springboot integrates Redis annotation and access error: java.io.NotSerializableException: com.demo.entity.MemberEntity
- The @value annotation of springboot adds the default value to solve the startup error caused by the non-existent key
- [Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- [Solved] nacos Startup Error: Please set the JAVA_HOME variable in your environment
- [Solved] java.sql.SQLException: Unknown system variable cache query size
- [Solved] IDEA Error: Unknown system variable ‘tx_isolation‘ at
- [Solved] Error:(3, 46) java: Program Package org.springframework.context.annotation does not exist
- [Solved] Initialization of anonymous inner class member variable causes java.lang.stackoverflowerror
- [Solved] Error: (4, 52) Java: package org springframework. beans. factory. Annotation does not exist
- Annotation @resource & @Autowired introduces Spring bean error
- Java learning unreported exception java.io.IOException ; must be caught or declared to be thrown
- [Solved] Default native-compiler executable ‘cl.exe‘ not found via environment variable PATH