mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-01 06:49:42 +00:00
Merge branch '2.1.x'
Closes gh-17079
This commit is contained in:
+1
-2
@@ -37,8 +37,7 @@ public class Customer {
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("Customer[id=%s, firstName='%s', lastName='%s']", this.id,
|
||||
this.firstName, this.lastName);
|
||||
return String.format("Customer[id=%s, firstName='%s', lastName='%s']", this.id, this.firstName, this.lastName);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+2
-3
@@ -61,9 +61,8 @@ public class SampleMongoApplication implements CommandLineRunner {
|
||||
|
||||
@Bean
|
||||
public MongoClientSettingsBuilderCustomizer customizer() {
|
||||
return (builder) -> builder
|
||||
.applyToConnectionPoolSettings((connectionPool) -> connectionPool
|
||||
.maxConnectionIdleTime(5, TimeUnit.MINUTES));
|
||||
return (builder) -> builder.applyToConnectionPoolSettings(
|
||||
(connectionPool) -> connectionPool.maxConnectionIdleTime(5, TimeUnit.MINUTES));
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
Reference in New Issue
Block a user