Spring Boot
wswx354
这个作者很懒,什么都没留下…
展开
-
Spring Boot消费RabbitMQ的消息
Spring Boot消费RabbitMQ的消息1.@Configuration2.@RabbitListener1.@Configuration通过Spring Boot@Configuration进行配置,将Queue和Exchange进行绑定@Configuration@EnableRabbitpublic class RabbitMqConfig { @Bean ...原创 2019-01-23 15:09:23 · 561 阅读 · 0 评论 -
Spring Boot容器加载完后操作
Spring Boot容器加载完后操作@Componentpublic class ApplicationStartup implements ApplicationListener<ContextRefreshedEvent> { private Logger logger = LoggerFactory.getLogger(ApplicationStartup.cl...原创 2019-02-28 10:32:02 · 310 阅读 · 0 评论