java – The type org.springframework.beans.factory.support.DefaultListableBeanFactory cannot be resolved
java – The type org.springframework.beans.factory.support.DefaultListableBeanFactory cannot be resolved
-
You can solve it by click Config build path and config build path for the project, this only works on this computer. You need to config it when move to another computer.
-
You can add dependency to pom.xml, make maven to manage dependency for you. This will work all the time.
<dependencies> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> <version>${spring-version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> <version>${spring-version}</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>${spring-version}</version> </dependency>
Close Eclipse –>
Go to C:Userssajanm2repository and delete all folders and files then again update the Maven and clean it.