-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : use postgresql as db, delombok and polish config
- Loading branch information
1 parent
1cac5e3
commit 7277f15
Showing
13 changed files
with
181 additions
and
63 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
23 changes: 23 additions & 0 deletions
23
boot-rabbitmq-thymeleaf/src/main/java/com/poc/boot/rabbitmq/config/RabbitListenerConfig.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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.poc.boot.rabbitmq.config; | ||
|
||
import org.springframework.amqp.rabbit.annotation.EnableRabbit; | ||
import org.springframework.amqp.rabbit.annotation.RabbitListenerConfigurer; | ||
import org.springframework.amqp.rabbit.listener.RabbitListenerEndpointRegistrar; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.messaging.handler.annotation.support.MessageHandlerMethodFactory; | ||
|
||
@EnableRabbit | ||
@Configuration(proxyBeanMethods = false) | ||
public class RabbitListenerConfig implements RabbitListenerConfigurer { | ||
|
||
private final MessageHandlerMethodFactory messageHandlerMethodFactory; | ||
|
||
public RabbitListenerConfig(MessageHandlerMethodFactory messageHandlerMethodFactory) { | ||
this.messageHandlerMethodFactory = messageHandlerMethodFactory; | ||
} | ||
|
||
@Override | ||
public void configureRabbitListeners(RabbitListenerEndpointRegistrar registrar) { | ||
registrar.setMessageHandlerMethodFactory(messageHandlerMethodFactory); | ||
} | ||
} |
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
Oops, something went wrong.