Skip to content

Commit fec75c4

Browse files
committed
Move unused property in code to metadata
1 parent 74379da commit fec75c4

File tree

2 files changed

+7
-13
lines changed

2 files changed

+7
-13
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mail/MailProperties.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,6 @@ public class MailProperties {
7676
*/
7777
private String jndiName;
7878

79-
/**
80-
* Whether to test that the mail server is available on startup.
81-
*/
82-
private boolean testConnection;
83-
8479
public String getHost() {
8580
return this.host;
8681
}
@@ -141,12 +136,4 @@ public String getJndiName() {
141136
return this.jndiName;
142137
}
143138

144-
public boolean isTestConnection() {
145-
return this.testConnection;
146-
}
147-
148-
public void setTestConnection(boolean testConnection) {
149-
this.testConnection = testConnection;
150-
}
151-
152139
}

spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -409,6 +409,13 @@
409409
"name": "spring.kafka.listener.type",
410410
"defaultValue": "single"
411411
},
412+
{
413+
"name": "spring.mail.test-connection",
414+
"description": "Whether to test that the mail server is available on startup.",
415+
"sourceType": "org.springframework.boot.autoconfigure.mail.MailProperties",
416+
"type": "java.lang.Boolean",
417+
"defaultValue": false
418+
},
412419
{
413420
"name": "spring.mongodb.embedded.features",
414421
"defaultValue": [

0 commit comments

Comments
 (0)