Skip to content

Commit 18eabee

Browse files
committed
refactor: 优化配置错误
1 parent b1e4f6e commit 18eabee

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

hsweb-commons/hsweb-commons-crud/src/main/java/org/hswebframework/web/crud/configuration/R2dbcSqlExecutorConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import org.springframework.transaction.ReactiveTransactionManager;
1616

1717
@AutoConfiguration
18-
@AutoConfigureAfter(name = "org.springframeworrk.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration")
18+
@AutoConfigureAfter(name = "org.springframework.boot.autoconfigure.r2dbc.R2dbcAutoConfiguration")
1919
@ConditionalOnBean(ConnectionFactory.class)
2020
public class R2dbcSqlExecutorConfiguration {
2121
@Bean

hsweb-commons/hsweb-commons-crud/src/test/java/org/hswebframework/web/crud/service/ReactiveTreeSortEntityServiceTest.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
import reactor.test.StepVerifier;
1717

1818
import java.util.Arrays;
19+
import java.util.Collections;
1920
import java.util.List;
2021

2122
import static org.junit.Assert.*;
@@ -111,14 +112,14 @@ public void testChangeParent() {
111112
entity2.setParentId(entity_0.getId());
112113

113114
sortEntityService
114-
.save(Arrays.asList(entity2))
115+
.save(List.of(entity2))
115116
.then()
116117
.as(StepVerifier::create)
117118
.expectComplete()
118119
.verify();
119120

120121
sortEntityService
121-
.queryIncludeChildren(Arrays.asList(entity_0.getId()))
122+
.queryIncludeChildren(Collections.singletonList(entity_0.getId()))
122123
.as(StepVerifier::create)
123124
.expectNextCount(3)
124125
.verifyComplete();

0 commit comments

Comments
 (0)