Move unused property in code to metadata

This commit is contained in:
Stephane Nicoll 2018-05-31 17:07:42 +02:00
parent 74379da726
commit fec75c42fa
2 changed files with 7 additions and 13 deletions

View File

@ -76,11 +76,6 @@ public class MailProperties {
*/ */
private String jndiName; private String jndiName;
/**
* Whether to test that the mail server is available on startup.
*/
private boolean testConnection;
public String getHost() { public String getHost() {
return this.host; return this.host;
} }
@ -141,12 +136,4 @@ public class MailProperties {
return this.jndiName; return this.jndiName;
} }
public boolean isTestConnection() {
return this.testConnection;
}
public void setTestConnection(boolean testConnection) {
this.testConnection = testConnection;
}
} }

View File

@ -409,6 +409,13 @@
"name": "spring.kafka.listener.type", "name": "spring.kafka.listener.type",
"defaultValue": "single" "defaultValue": "single"
}, },
{
"name": "spring.mail.test-connection",
"description": "Whether to test that the mail server is available on startup.",
"sourceType": "org.springframework.boot.autoconfigure.mail.MailProperties",
"type": "java.lang.Boolean",
"defaultValue": false
},
{ {
"name": "spring.mongodb.embedded.features", "name": "spring.mongodb.embedded.features",
"defaultValue": [ "defaultValue": [