皇冠体育寻求亚洲战略合作伙伴,皇冠代理招募中,皇冠平台开放会员注册、充值、提现、电脑版下载、APP下载。

首页快讯正文

皇冠足球投注平台:俄驻美使馆批美国:颠倒黑白歪曲乌克兰局势

admin2023-02-0477欧美新闻

参考消息网12月23日报道 据俄罗斯卫星社莫斯科12月22日报道,俄罗斯驻华盛顿大使馆周三驳斥了美方提出的有关俄方加剧乌克兰紧张局势的指控。

,

皇冠足球投注平台www.hg9988.vip)是皇冠足球投注平台,开放皇冠信用网代理申请、信用网会员开户,线上投注的官方平台。

,

报道指出,周二晚些时候,美国国务院发言人内德·普赖斯在推特上说,乌克兰紧张局势加剧的根源是“俄罗斯及其代理人”,而不是基辅或华盛顿。

俄罗斯大使馆在推特上回应称:“我们呼吁美国国务院不要颠倒黑白歪曲事实。如果真想缓和局势,美国就不应该在我们的边界附近建立反俄军事基地。”“华盛顿还应保证不再推动北约东扩,不让苏联前加盟共和国加入北约,也不与这些国家进行双边军事合作。”

网友评论

2条评论
  • 2022-03-23 00:01:33

    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-amqp</artifactId>
    </dependency>
    <dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <optional>true</optional>
    </dependency>
    <dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-test</artifactId>
    <scope>test</scope>
    </dependency>
    <dependency>
    <groupId>org.springframework.amqp</groupId>
    <artifactId>spring-rabbit-test</artifactId>
    <scope>test</scope>
    </dependency>

    3.2 application.yaml


    spring:
    rabbitmq:
    host: localhost
    port: 5672
    # rabbit 默认的虚拟主机
    virtual-host: /
    # rabbit 用户名密码
    username: admin
    password: admin123

    3.3 RabbitConfig


    import org.springframework.amqp.core.Binding;
    import org.springframework.amqp.core.BindingBuilder;
    import org.springframework.amqp.core.CustomExchange;
    import org.springframework.amqp.core.Queue;
    import org.springframework.amqp.core.QueueBuilder;
    import org.springframework.beans.factory.annotation.Qualifier;
    import org.springframework.context.annotation.Bean;
    import org.springframework.context.annotation.Configuration;
    import java.util.HashMap;
    import java.util.Map;
    /**
    * 延迟行列设置
    *
    * @author ludangxin
    * @date 2021/9/16
    */
    @Configuration
    public class RabbitDelayedConfig {
    public static final String QUEUE_NAME_DELAYED = "DELAY.QUEUE";
    public static final String EXCHANGE_NAME_DELAYED = "DELAY.EXCHANGE";
    public static final String ROUTING_KEY_DELAYED = "DELAY.#";
    @Bean(QUEUE_NAME_DELAYED)
    public Queue queue() {
    return QueueBuilder.durable(QUEUE_NAME_DELAYED).build();
    }
    @Bean(EXCHANGE_NAME_DELAYED)
    public CustomExchange exchange() {
    Map<String, Object> arguments = new HashMap<>(1);
    // 在这里声明一个主题类型的延迟行列,固然其他类型的也可以。
    arguments.put("x-delayed-type", "topic");
    return new CustomExchange(EXCHANGE_NAME_DELAYED, "x-delayed-message", true, false, arguments);
    }
    @Bean
    public Binding bindingNotify(@Qualifier(QUEUE_NAME_DELAYED) Queue queue, @Qualifier(EXCHANGE_NAME_DELAYED) CustomExchange customExchange) {
    return BindingBuilder.bind(queue).to(customExchange).with(ROUTING_KEY_DELAYED).noargs();
    }
    }

    3.4 Producer


    import com.ldx.rabbitmq.config.RabbitDelayedConfig;
    import org.springframework.amqp.core.Message;
    import org.springframework.amqp.core.MessageProperties;
    import org.springframework.amqp.rabbit.core.RabbitTemplate;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.stereotype.Component;
    import java.time.LocalDateTime;
    import java.time.format.DateTimeFormatter;
    /**
    * 延迟新闻生产者
    *
    * @author ludangxin
    * @date 2021/9/9
    */
    @Component
    public class DelayProducer {
    @Autowired
    private RabbitTemplate rabbitTemplate;
    public void sendDelayedMsg(String msg, Integer delay) {
    MessageProperties mp = new MessageProperties();
    // 设置过时时间
    mp.setDelay(delay);
    Message message = new Message(msg.getBytes(), mp);
    rabbitTemplate.convertAndSend(RabbitDelayedConfig.EXCHANGE_NAME_DELAYED, "DELAY.MSG", message);
    }
    }

    3.5 Consumer


    import com.ldx.rabbitmq.config.RabbitDelayedConfig;
    import lombok.extern.slf4j.Slf4j;
    import org.springframework.amqp.core.Message;
    import org.springframework.amqp.rabbit.annotation.RabbitListener;
    import org.springframework.stereotype.Component;
    import java.time.LocalDateTime;
    import java.time.format.DateTimeFormatter;
    /**
    * 延迟新闻消费者
    *
    * @author ludangxin
    * @date 2021/9/9
    */
    @Slf4j
    @Component
    public class DelayConsumer {
    @RabbitListener(queues = {RabbitDelayedConfig.QUEUE_NAME_DELAYED})
    public void delayQueue(Message message){
    log.info(new String(message.getBody()) + ",竣事时间为:" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")));
    }
    }

    3.6 测试代码


    @Autowired
    private DelayProducer delayProducer;
    @Test
    @SneakyThrows
    public void sendDelayedMsg() {
    for(int i = 16; i >= 10; i --) {
    String msg = "我将在" + i + "s后过时,最先时间为:" + LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
    delayProducer.sendDelayedMsg(msg,i * 1000);
    }
    // 使历程壅闭,利便Consumer监听输出Message
    System.in.read();
    }

    3.7 启动测试


    启动测试代码,输出内容如下:忍不住评论一下

热门标签