I am working on a spring boot application and i am not able to import the security test above .
I have this dependency . the word with red line in import is "test"
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
You're getting the error as Maven trying to fetch a dependency that has no LATEST
or RELEASE
version; you have to define a very specific version. This should work.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>1.5.8.RELEASE</version>
<scope>test</scope>
</dependency>
Here is Maven Repository
By the way, I tried this on my project and it works for me.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.