You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/batch/BasicBatchConfigurer.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/kafka/ConcurrentKafkaListenerContainerFactoryConfigurer.java
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/TomcatWebServerFactoryCustomizer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -82,7 +82,7 @@ public void customize(ConfigurableTomcatWebServerFactory factory) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/embedded/UndertowWebServerFactoryCustomizer.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -81,7 +81,7 @@ public void customize(ConfigurableUndertowWebServerFactory factory) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/PropertyMapper.java
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -91,6 +91,21 @@ public PropertyMapper alwaysApplying(SourceOperator operator) {
91
91
returnnewPropertyMapper(this, operator);
92
92
}
93
93
94
+
/**
95
+
* Return a new {@link Source} from the specified value that can be used to perform
96
+
* the mapping.
97
+
* @param <T> the source type
98
+
* @param value the value
99
+
* @return a {@link Source} that can be used to complete the mapping
100
+
*/
101
+
public <T> Source<T> from(Tvalue) {
102
+
Source<T> source = getSource(() -> value);
103
+
if (this.sourceOperator != null) {
104
+
source = this.sourceOperator.apply(source);
105
+
}
106
+
returnsource;
107
+
}
108
+
94
109
/**
95
110
* Return a new {@link Source} from the specified value supplier that can be used to
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/webservices/client/WebServiceTemplateBuilder.java
+5-6Lines changed: 5 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -502,13 +502,12 @@ public <T extends WebServiceTemplate> T configure(T webServiceTemplate) {
Copy file name to clipboardExpand all lines: spring-boot-project/spring-boot/src/test/java/org/springframework/boot/context/properties/PropertyMapperTests.java
+27-1Lines changed: 27 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -37,11 +37,37 @@ public class PropertyMapperTests {
0 commit comments