This bug should only appear in idea2020
Error:(3, 46) java: Program Package org.springframework.context.annotation does not exist
First, open the file in the upper left corner of the idea, and then click settings
Then click build, execution, deployment > Build Tools > Maven > Runner
check delegate ide build/run actions to Maven
The problem will be solved easily
in addition, warm tips: only idea2020 will have this error, and there are many hidden bugs in 2020. It is recommended to upgrade to idea2021 as soon as possible
Read More:
- [Solved] Error: (4, 52) Java: package org springframework. beans. factory. Annotation does not exist
- Maven error: package org.springframework.context does not exist
- [Solved] Maven Project Error: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- JAVA Error: package org.apache.commons.codec.binary does not exist
- [Solved] org.springframework.context.ApplicationContextException: Failed to start bean ‘org.springframework.a
- Springboot startup error “No bean named’org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry’ available”
- [Solved] SSM startup error: ClassNotFoundException: java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
- [Integrate the mobile MAS SMS service] SDK start error: NoSuchMethodError: org.springframework.core.annotation.AnnotatedElementUtil
- [Solved] Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderA
- Error processing condition on org.springframework.boot.autoconfigure.context.PropertyPlaceholderAuto
- [Javac compilation exception] javac compilation prompts that the package in jdk cannot be found error: package jdk.internal.org.objectweb.asm does not exist and error: cannot find symbol
- Dubbo Frame Write Junit Error: ERROR org.springframework.test.context.Testcontextmanager
- [Solved] IDEA Add maven Project Error: Error:(3,21)java: Package javax.servletdoes not exist
- [Solved] Error: (3, 31) Java: package jdk.nashorn.internal.ir does not exist
- [Solved] java.lang.IllegalAccessError: class org.springframework.data.redis.core.$ Proxy237 cannot access its superinterface org.springframework.data.redis.core.RedisConnectionUtils$RedisConnectionProxy
- [Solved] Nacos Serve Local Startup Error: Error starting Tomcat context. Exception: org.springframework.beans.factory.BeanCre
- [Solved] org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘org
- [Solved] ERROR org.springframework.boot.SpringApplication – Application run failed org.yaml.snakeyaml.scanner
- org.postgresql.util.PSQLException: ERROR: operator does not exist: character varying XXX
- [Solved] spring source code compile error: target package does not exist