Commit fec75c42 authored by Stephane Nicoll's avatar Stephane Nicoll

Move unused property in code to metadata

parent 74379da7
...@@ -76,11 +76,6 @@ public class MailProperties { ...@@ -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 { ...@@ -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;
}
} }
...@@ -409,6 +409,13 @@ ...@@ -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": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment