mirror of
https://github.com/drtrang/druid-spring-boot.git
synced 2026-11-24 15:19:19 +00:00
1.1.8
This commit is contained in:
+2
-1
@@ -16,7 +16,8 @@ public class JpaTests extends BaseTest {
|
||||
@Test
|
||||
public void testOne() {
|
||||
cityRepository.findById(1L)
|
||||
.ifPresent(gson::toJson);
|
||||
.map(gson::toJson)
|
||||
.ifPresent(city -> log.info("{}", city));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-1
@@ -17,7 +17,8 @@ public class MyBatisTests extends BaseTest {
|
||||
@Test
|
||||
public void testOne() {
|
||||
Optional.ofNullable(cityMapper.findById(1L))
|
||||
.ifPresent(gson::toJson);
|
||||
.map(gson::toJson)
|
||||
.ifPresent(city -> log.info("{}", city));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user