Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Mautsch committed Jul 6, 2024
1 parent e0e3cb7 commit b71e0c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
import org.springframework.context.annotation.Profile;

//https://gcore.com/learning/nats-rabbitmq-nsq-kafka-comparison/
@Configuration
@Profile("nats")
@Configuration
@RegisterReflectionForBinding(EventData.class)
public class NatsConfiguration {
private static Logger log = LoggerFactory.getLogger(NatsConfiguration.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Component
@Profile("nats")
@Component
public class EventProducerNats implements EventProducer {
private final Connection natsConnection;
private final ObjectMapper objectMapper;
Expand Down

0 comments on commit b71e0c1

Please sign in to comment.