mirror of
https://github.com/OtusTeam/Spring.git
synced 2026-05-30 10:50:42 +00:00
examples updated
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.2.1.RELEASE</version>
|
||||
<version>2.3.4.RELEASE</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
|
||||
+2
-5
@@ -67,11 +67,8 @@ public class IntegrationConfig {
|
||||
, mapping -> mapping.subFlowMapping(true, sub -> sub
|
||||
.transform(messageTransformer, TRANSFORM_METHOD_NAME)
|
||||
.handle(m -> {
|
||||
val isImportant = m.getHeaders().get(IS_IMPORTANT_MESSAGE, Boolean.class);
|
||||
if (isImportant != null && isImportant) {
|
||||
System.out.println("Как будто посылаем письмо: " + m.getPayload());
|
||||
//mailSender.send((SimpleMailMessage) m.getPayload());
|
||||
}
|
||||
System.out.println("Как будто посылаем письмо: " + m.getPayload());
|
||||
//mailSender.send((SimpleMailMessage) m.getPayload());
|
||||
})
|
||||
)
|
||||
.subFlowMapping(false, IntegrationFlowDefinition::nullChannel)
|
||||
|
||||
@@ -12,7 +12,7 @@ spring:
|
||||
generate-ddl: false
|
||||
hibernate:
|
||||
ddl-auto: none
|
||||
show-sql: true
|
||||
show-sql: false
|
||||
|
||||
mail:
|
||||
host: smtp.mail.ru
|
||||
|
||||
+1
-1
@@ -11,4 +11,4 @@ spring:
|
||||
show-sql: false
|
||||
|
||||
rabbitmq:
|
||||
addresses: "192.168.99.100"
|
||||
addresses: "localhost"
|
||||
+1
-1
@@ -15,7 +15,7 @@ spring:
|
||||
show-sql: true
|
||||
|
||||
rabbitmq:
|
||||
addresses: "192.168.99.100"
|
||||
addresses: "localhost"
|
||||
|
||||
mail:
|
||||
host: smtp.mail.ru
|
||||
|
||||
Reference in New Issue
Block a user