mirror of
https://gitee.com/dcren/initializr.git
synced 2025-09-19 10:08:22 +08:00
Remove reactive security starter
This commit is contained in:
@@ -53,8 +53,7 @@ class SpringSecurityTestRequestPostProcessor implements ProjectRequestPostProces
|
|||||||
|
|
||||||
private boolean hasSpringSecurity(ProjectRequest request) {
|
private boolean hasSpringSecurity(ProjectRequest request) {
|
||||||
return request.getResolvedDependencies().stream()
|
return request.getResolvedDependencies().stream()
|
||||||
.anyMatch(d -> "security".equals(d.getId())
|
.anyMatch(d -> "security".equals(d.getId()));
|
||||||
|| "security-reactive".equals(d.getId()));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean isAtLeastAfter(ProjectRequest request, Version version) {
|
private boolean isAtLeastAfter(ProjectRequest request, Version version) {
|
||||||
|
@@ -120,11 +120,6 @@ initializr:
|
|||||||
description: Authenticating a User with LDAP
|
description: Authenticating a User with LDAP
|
||||||
- rel: reference
|
- rel: reference
|
||||||
href: http://docs.spring.io/spring-boot/docs/{bootVersion}/reference/htmlsingle/#boot-features-security
|
href: http://docs.spring.io/spring-boot/docs/{bootVersion}/reference/htmlsingle/#boot-features-security
|
||||||
- name: Reactive Security
|
|
||||||
id: security-reactive
|
|
||||||
description: Secure your reactive application via spring-security-webflux
|
|
||||||
versionRange: "[2.0.0.M5,2.0.0.M6)"
|
|
||||||
weight: 90
|
|
||||||
- name: Aspects
|
- name: Aspects
|
||||||
id: aop
|
id: aop
|
||||||
description: Create your own Aspects using Spring AOP and AspectJ
|
description: Create your own Aspects using Spring AOP and AspectJ
|
||||||
|
@@ -38,17 +38,6 @@ public class SpringSecurityTestRequestPostProcessorTests
|
|||||||
.hasDependenciesCount(3);
|
.hasDependenciesCount(3);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
|
||||||
public void securityTestIsAddedWithSecurityReactive() {
|
|
||||||
ProjectRequest request = createProjectRequest("security-reactive");
|
|
||||||
request.setBootVersion("2.0.0.M5");
|
|
||||||
generateMavenPom(request)
|
|
||||||
.hasSpringBootStarterDependency("security-reactive")
|
|
||||||
.hasSpringBootStarterTest()
|
|
||||||
.hasDependency(springSecurityTest())
|
|
||||||
.hasDependenciesCount(3);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void securityTestIsNotAddedBefore13() {
|
public void securityTestIsNotAddedBefore13() {
|
||||||
ProjectRequest request = createProjectRequest("security");
|
ProjectRequest request = createProjectRequest("security");
|
||||||
|
Reference in New Issue
Block a user