Cannot import SpringApplicationContextLoader

user

I use IntelliJ IDEA and write Spring project.

I added dependency

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-test</artifactId>
        <scope>test</scope>
    </dependency>

and more related to Spring Boot. I cannot import SpringApplicationContextLoader using:

import org.springframework.boot.test.SpringApplicationContextLoader

But I see many projects on GitHub which use this class.

How can I check current package of this class?

Yoav Gur

Try adding the following dependency to your pom:

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot</artifactId>
   <version>1.1.1.RELEASE</version>
</dependency> 

See: https://1maven.com/idartifact/org.springframework.boot:spring-boot:1.1.1.RELEASE

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related