11 2021 档案
摘要:七个开源的 Spring Boot 前后端分离项目,一定要收藏!
阅读全文
摘要:/** * Construct a new queue, given a name, durability flag, and auto-delete flag, and arguments. * @param name the name of the queue - must not be nul
阅读全文
摘要:1、避免使用 select * 很多时候,我们写sql语句时,为了方便,喜欢直接使用select *,一次性查出表中所有列的数据。 反例: select * from user where id=1; 在实际业务场景中,可能我们真正需要使用的只有其中一两列。查了很多数据,但是不用,白白浪费了数据库资
阅读全文
摘要:问题描述: 使用了x-delayed-message 延迟插件,结果每次都强制触发returnedMessage回调方法???? 解决方案: 如果配置了发送回调ReturnCallback,插件延迟队列则会回调该方法,因为发送方确实没有投递到队列上,只是在交换器上暂存,等过期时间到了 才会发往队列。
阅读全文