摘要: Routing模式则可以指定具体的接收队列。 1、在服务类中,编写路由模式消息的接收代码 @Servicepublic class MessageService {//路由模式消息接收,处理error级别日志消息 @RabbitListener(bindings=@QueueBinding(valu 阅读全文
posted @ 2020-09-11 23:31 codeing123 阅读(873) 评论(0) 推荐(0) 编辑
摘要: 使用注解方式实现RabbitMq整合 RabbitMq交换器接收到的消息会广播到每一个绑定的消息队列。(fanout类型的交换器) 在进行该部分实验前把之前的交换器和队列删除,在RabbitMq管理后台完成。 1、RabbitMq配置类 @Configuration public class Rab 阅读全文
posted @ 2020-09-11 23:05 codeing123 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 1、首先下载安装好Rabbit MQ,使用Username : guest Password: guest登录 2、观察目前RabbitMq中的Exchange和queue的情况。下图是默认存在的交换器 3、 默认没有任何消息队列 RabbitMQ和SpringBoot整合 RabbitMq交换器接 阅读全文
posted @ 2020-09-11 22:17 codeing123 阅读(545) 评论(0) 推荐(0) 编辑
摘要: SpringSecurity 1、SpringSecurity主要还是在配置文件里面配置 类前面添加注解 @EnableWebSecurity 继承 WebSecurityConfigurerAdapter 注入自带的DataSource 注入重写的UserDetailsService 重写用户身份 阅读全文
posted @ 2020-09-11 11:06 codeing123 阅读(4284) 评论(0) 推荐(0) 编辑