0
位置spring-boot-integration-tests-1.5.2.RELEASE位于spring-boot-security-tests-1.5.2.RELEASE的父级并且无法在中央存储库中加载(找到)。如何查找spring-boot-integration-testing maven artifact
位置spring-boot-integration-tests-1.5.2.RELEASE位于spring-boot-security-tests-1.5.2.RELEASE的父级并且无法在中央存储库中加载(找到)。如何查找spring-boot-integration-testing maven artifact
你需要明确地增加了Spring的安全测试模块
如果您正在使用gradle这个声明为testCompile('org.springframework.security:spring-security-test')
如果Maven就会
<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-test</artifactId>
</dependency>
注::版本是由弹簧保持boot parent pom
换句话说:如何将Spring Boot安全测试添加到我的项目中,以便有可能使用注释(如@WithMockUser)(authorities =“ADM在”) –