-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): update dependency com.diffplug.spotless:spotless-maven-p…
…lugin to v2.39.0 (#365) * chore(deps): update dependency com.diffplug.spotless:spotless-maven-plugin to v2.39.0 * feat: fixes spotless format issue --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Raja Kolli <[email protected]>
- Loading branch information
1 parent
d456493
commit e71fd40
Showing
11 changed files
with
52 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 32 additions & 30 deletions
62
kafka-sample/spring-cloud/src/main/java/com/example/cloudkafkasample/config/KafkaConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,32 @@ | ||
package com.example.cloudkafkasample.config; | ||
|
||
import org.springframework.cloud.stream.config.ListenerContainerCustomizer; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.kafka.core.KafkaOperations; | ||
import org.springframework.kafka.listener.AbstractMessageListenerContainer; | ||
import org.springframework.kafka.listener.DeadLetterPublishingRecoverer; | ||
import org.springframework.kafka.listener.DefaultErrorHandler; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
public class KafkaConfig { | ||
|
||
@Bean | ||
ListenerContainerCustomizer<AbstractMessageListenerContainer<byte[], byte[]>> customizer(DefaultErrorHandler errorHandler) { | ||
return (container, dest, group) -> { | ||
container.setCommonErrorHandler(errorHandler); | ||
}; | ||
} | ||
|
||
@Bean | ||
DefaultErrorHandler errorHandler(DeadLetterPublishingRecoverer deadLetterPublishingRecoverer) { | ||
return new DefaultErrorHandler(deadLetterPublishingRecoverer); | ||
} | ||
|
||
@Bean | ||
DeadLetterPublishingRecoverer publisher(KafkaOperations<byte[], byte[]> bytesTemplate) { | ||
return new DeadLetterPublishingRecoverer(bytesTemplate); | ||
} | ||
} | ||
/* (C)2023 */ | ||
package com.example.cloudkafkasample.config; | ||
|
||
import org.springframework.cloud.stream.config.ListenerContainerCustomizer; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.kafka.core.KafkaOperations; | ||
import org.springframework.kafka.listener.AbstractMessageListenerContainer; | ||
import org.springframework.kafka.listener.DeadLetterPublishingRecoverer; | ||
import org.springframework.kafka.listener.DefaultErrorHandler; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
public class KafkaConfig { | ||
|
||
@Bean | ||
ListenerContainerCustomizer<AbstractMessageListenerContainer<byte[], byte[]>> customizer( | ||
DefaultErrorHandler errorHandler) { | ||
return (container, dest, group) -> { | ||
container.setCommonErrorHandler(errorHandler); | ||
}; | ||
} | ||
|
||
@Bean | ||
DefaultErrorHandler errorHandler(DeadLetterPublishingRecoverer deadLetterPublishingRecoverer) { | ||
return new DefaultErrorHandler(deadLetterPublishingRecoverer); | ||
} | ||
|
||
@Bean | ||
DeadLetterPublishingRecoverer publisher(KafkaOperations<byte[], byte[]> bytesTemplate) { | ||
return new DeadLetterPublishingRecoverer(bytesTemplate); | ||
} | ||
} |
21 changes: 11 additions & 10 deletions
21
...-sample/spring-cloud/src/main/java/com/example/cloudkafkasample/config/SwaggerConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
package com.example.cloudkafkasample.config; | ||
|
||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.servers.Server; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
@OpenAPIDefinition(info = @Info(title = "cloud-kafka-sample", version = "v1"), servers = @Server(url = "/")) | ||
public class SwaggerConfig {} | ||
/* (C)2023 */ | ||
package com.example.cloudkafkasample.config; | ||
|
||
import io.swagger.v3.oas.annotations.OpenAPIDefinition; | ||
import io.swagger.v3.oas.annotations.info.Info; | ||
import io.swagger.v3.oas.annotations.servers.Server; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
@Configuration(proxyBeanMethods = false) | ||
@OpenAPIDefinition(info = @Info(title = "cloud-kafka-sample", version = "v1"), servers = @Server(url = "/")) | ||
public class SwaggerConfig {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters