Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
fec75c42
Commit
fec75c42
authored
May 31, 2018
by
Stephane Nicoll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move unused property in code to metadata
parent
74379da7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
13 deletions
+7
-13
MailProperties.java
...ringframework/boot/autoconfigure/mail/MailProperties.java
+0
-13
additional-spring-configuration-metadata.json
...es/META-INF/additional-spring-configuration-metadata.json
+7
-0
No files found.
spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/mail/MailProperties.java
View file @
fec75c42
...
...
@@ -76,11 +76,6 @@ public class MailProperties {
*/
private
String
jndiName
;
/**
* Whether to test that the mail server is available on startup.
*/
private
boolean
testConnection
;
public
String
getHost
()
{
return
this
.
host
;
}
...
...
@@ -141,12 +136,4 @@ public class MailProperties {
return
this
.
jndiName
;
}
public
boolean
isTestConnection
()
{
return
this
.
testConnection
;
}
public
void
setTestConnection
(
boolean
testConnection
)
{
this
.
testConnection
=
testConnection
;
}
}
spring-boot-project/spring-boot-autoconfigure/src/main/resources/META-INF/additional-spring-configuration-metadata.json
View file @
fec75c42
...
...
@@ -409,6 +409,13 @@
"name"
:
"spring.kafka.listener.type"
,
"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"
,
"defaultValue"
:
[
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment